Class EncryptionStrategy

java.lang.Object
com.structurizr.encryption.EncryptionStrategy
Direct Known Subclasses:
AesEncryptionStrategy

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

    Constructors 
    Modifier Constructor Description
    protected EncryptionStrategy()  
    protected EncryptionStrategy​(java.lang.String passphrase)  
  • Method Summary

    Modifier and Type Method Description
    abstract java.lang.String decrypt​(java.lang.String ciphertext)  
    abstract java.lang.String encrypt​(java.lang.String plaintext)  
    EncryptionLocation getLocation()  
    java.lang.String getPassphrase()  
    void setLocation​(EncryptionLocation location)  
    void setPassphrase​(java.lang.String passphrase)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getPassphrase

      public java.lang.String getPassphrase()
    • setPassphrase

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

      public EncryptionLocation getLocation()
    • setLocation

      public void setLocation​(EncryptionLocation location)
    • 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