Package net.md_5.bungee.jni.cipher

# Interface BungeeCipher

All Known Implementing Classes:
  `JavaCipher`, `NativeCipher`

public interface BungeeCipher
Class to expose cipher methods from either native or fallback Java cipher.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `allowComposite()`
  `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()`
  `void`
  `init(boolean forEncryption, SecretKey key)`

- ## Method Details

  - ### 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`

  - ### allowComposite

    boolean allowComposite()