public class NativeCipher extends Object implements BungeeCipher
| Constructor and Description |
|---|
NativeCipher() |
| Modifier and Type | Method and Description |
|---|---|
void |
cipher(io.netty.buffer.ByteBuf in,
io.netty.buffer.ByteBuf out) |
io.netty.buffer.ByteBuf |
cipher(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in) |
void |
free() |
net.md_5.bungee.jni.cipher.NativeCipherImpl |
getNativeCipher() |
void |
init(boolean forEncryption,
SecretKey key) |
public void init(boolean forEncryption,
SecretKey key)
throws GeneralSecurityException
init in interface BungeeCipherGeneralSecurityExceptionpublic void free()
free in interface BungeeCipherpublic void cipher(io.netty.buffer.ByteBuf in,
io.netty.buffer.ByteBuf out)
throws GeneralSecurityException
cipher in interface BungeeCipherGeneralSecurityExceptionpublic io.netty.buffer.ByteBuf cipher(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in)
throws GeneralSecurityException
cipher in interface BungeeCipherGeneralSecurityExceptionpublic net.md_5.bungee.jni.cipher.NativeCipherImpl getNativeCipher()
Copyright © 2015–2020 WaterfallMC. All rights reserved.