Class Encrypt.Decrypter

  • All Implemented Interfaces:
    java.util.function.BiConsumer<Message,​MessageBatch>
    Enclosing class:
    Encrypt<E extends java.security.KeyStore.Entry>

    protected class Encrypt.Decrypter
    extends java.lang.Object
    implements java.util.function.BiConsumer<Message,​MessageBatch>
    Decrypts all messages in a batch, replacing encrypted messages in-place with their decrypted versions
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected javax.crypto.Cipher cipher  
    • Constructor Summary

      Constructors 
      Constructor Description
      Decrypter​(javax.crypto.Cipher cipher)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(Message msg, MessageBatch batch)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.BiConsumer

        andThen
    • Field Detail

      • cipher

        protected final javax.crypto.Cipher cipher
    • Constructor Detail

      • Decrypter

        public Decrypter​(javax.crypto.Cipher cipher)