Package io.ably.lib.util
Interface Crypto.EncryptingChannelCipher
-
- Enclosing class:
- Crypto
public static interface Crypto.EncryptingChannelCipherInternal; a cipher used to encrypt plaintext to ciphertext, for a channel.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]encrypt(byte[] plaintext)Enciphers plaintext.java.lang.StringgetAlgorithm()
-
-
-
Method Detail
-
encrypt
byte[] encrypt(byte[] plaintext) throws AblyExceptionEnciphers 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()
-
-