Package net.dv8tion.jda.internal.audio
Interface CryptoAdapter
- All Known Implementing Classes:
CryptoAdapter.AbstractAaedAdapter
,CryptoAdapter.AES_GCM_Adapter
,CryptoAdapter.XChaCha20Poly1305Adapter
public interface CryptoAdapter
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
static class
static class
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
decrypt
(ByteBuffer packet) encrypt
(ByteBuffer output, ByteBuffer audio) static CryptoAdapter
getAdapter
(AudioEncryption mode, byte[] secretKey) getMode()
static boolean
static AudioEncryption
negotiate
(EnumSet<AudioEncryption> supportedModes)
-
Field Details
-
AES_GCM_NO_PADDING
- See Also:
-
-
Method Details
-
getMode
AudioEncryption getMode() -
encrypt
-
decrypt
-
negotiate
-
isModeSupported
-
getAdapter
-