Class EncryptionStrategy

  • Direct Known Subclasses:
    AesEncryptionStrategy

    public abstract class EncryptionStrategy
    extends java.lang.Object
    Superclass for all encryption strategies.
    • Constructor Detail

      • EncryptionStrategy

        protected EncryptionStrategy()
      • EncryptionStrategy

        protected EncryptionStrategy​(java.lang.String passphrase)
    • Method Detail

      • getPassphrase

        public java.lang.String getPassphrase()
      • setPassphrase

        public void setPassphrase​(java.lang.String passphrase)
      • encrypt

        public abstract java.lang.String encrypt​(java.lang.String plaintext)
                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • decrypt

        public abstract java.lang.String decrypt​(java.lang.String ciphertext)
                                          throws java.lang.Exception
        Throws:
        java.lang.Exception