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.String getAlgorithm()  
  • Method Details

    • encrypt

      byte[] encrypt​(byte[] plaintext) throws AblyException
      Enciphers plaintext. This method is not safe to be called from multiple threads at the same time, and it will throw a ConcurrentModificationException if 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()