Package net.md_5.bungee.jni.cipher
Interface BungeeCipher
-
- All Known Implementing Classes:
JavaCipher,NativeCipher
public interface BungeeCipherClass to expose cipher methods from either native or fallback Java cipher.
-
-
Method Summary
All Methods Instance Methods Abstract 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
void init(boolean forEncryption, SecretKey key) throws GeneralSecurityException- Throws:
GeneralSecurityException
-
free
void free()
-
cipher
void cipher(io.netty.buffer.ByteBuf in, io.netty.buffer.ByteBuf out) throws GeneralSecurityException- Throws:
GeneralSecurityException
-
cipher
io.netty.buffer.ByteBuf cipher(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf in) throws GeneralSecurityException- Throws:
GeneralSecurityException
-
-