Package com.structurizr.encryption
Class AesEncryptionStrategy
java.lang.Object
com.structurizr.encryption.EncryptionStrategy
com.structurizr.encryption.AesEncryptionStrategy
This is implementation of an AES encryption strategy, allowing you to specify the
key size, iteration count and passphrase.
-
Constructor Summary
ConstructorsConstructorDescriptionAesEncryptionStrategy
(int keySize, int iterationCount, String passphrase) AesEncryptionStrategy
(int keySize, int iterationCount, String salt, String iv, String passphrase) AesEncryptionStrategy
(String passphrase) -
Method Summary
Methods inherited from class com.structurizr.encryption.EncryptionStrategy
getLocation, getPassphrase, setLocation, setPassphrase
-
Constructor Details
-
AesEncryptionStrategy
-
AesEncryptionStrategy
-
AesEncryptionStrategy
-
-
Method Details
-
encrypt
- Specified by:
encrypt
in classEncryptionStrategy
- Throws:
Exception
-
decrypt
- Specified by:
decrypt
in classEncryptionStrategy
- Throws:
Exception
-
getKeySize
public int getKeySize() -
getIterationCount
public int getIterationCount() -
getSalt
-
getIv
-