Package io.ably.lib.util
Interface Crypto.EncryptingChannelCipher
- Enclosing class:
- Crypto
public static interface Crypto.EncryptingChannelCipher
Internal; a cipher used to encrypt plaintext to ciphertext, for a channel.
-
Method Summary
Modifier and Type Method Description byte[]encrypt(byte[] plaintext)Enciphers plaintext.java.lang.StringgetAlgorithm()
-
Method Details
-
encrypt
Enciphers plaintext. This method is not safe to be called from multiple threads at the same time, and it will throw aConcurrentModificationExceptionif that happens at runtime.- Returns:
- ciphertext, being the result of encrypting plaintext.
- Throws:
java.util.ConcurrentModificationException- If this method is called from more than one thread at a time.AblyException
-
getAlgorithm
java.lang.String getAlgorithm()
-