Package com.structurizr.encryption
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)
-
Constructor Details
-
EncryptionStrategy
protected EncryptionStrategy() -
EncryptionStrategy
protected EncryptionStrategy(java.lang.String passphrase)
-
-
Method Details
-
getPassphrase
public java.lang.String getPassphrase() -
setPassphrase
public void setPassphrase(java.lang.String passphrase) -
getLocation
-
setLocation
-
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
-