Package net.md_5.bungee.jni.cipher
Class JavaCipher
- java.lang.Object
-
- net.md_5.bungee.jni.cipher.JavaCipher
-
- All Implemented Interfaces:
BungeeCipher
public class JavaCipher extends Object implements BungeeCipher
-
-
Constructor Summary
Constructors Constructor Description JavaCipher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcipher(io.netty.buffer.ByteBuf in, io.netty.buffer.ByteBuf out)io.netty.buffer.ByteBufcipher(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf in)voidfree()voidinit(boolean forEncryption, SecretKey key)
-
-
-
Method Detail
-
init
public void init(boolean forEncryption, SecretKey key) throws GeneralSecurityException- Specified by:
initin interfaceBungeeCipher- Throws:
GeneralSecurityException
-
cipher
public void cipher(io.netty.buffer.ByteBuf in, io.netty.buffer.ByteBuf out) throws ShortBufferException- Specified by:
cipherin interfaceBungeeCipher- Throws:
ShortBufferException
-
cipher
public io.netty.buffer.ByteBuf cipher(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf in) throws ShortBufferException- Specified by:
cipherin interfaceBungeeCipher- Throws:
ShortBufferException
-
free
public void free()
- Specified by:
freein interfaceBungeeCipher
-
-