Package org.apache.synapse.securevault
Class SymmetricCipher
java.lang.Object
org.apache.synapse.securevault.BaseCipher
org.apache.synapse.securevault.SymmetricCipher
- All Implemented Interfaces:
DecryptionProvider,EncryptionProvider
The Cipher doing symmetric cryptographic operations
Uses default key when these is no SecretKey
-
Field Summary
Fields inherited from class org.apache.synapse.securevault.BaseCipher
keyStoreWrapper -
Constructor Summary
ConstructorsConstructorDescriptionSymmetricCipher(CipherInformation cipherInformation, Key key) SymmetricCipher(CipherInformation cipherInformation, KeyStoreInformation keystoreInformation) SymmetricCipher(CipherInformation cipherInformation, KeyStoreWrapper keyStoreWrapper) -
Method Summary
Modifier and TypeMethodDescriptiongetKey(CipherOperationMode operationMode) Returns the correct key for correct operationMethods inherited from class org.apache.synapse.securevault.BaseCipher
decrypt, encrypt, getCipherInformation, getKeyStoreInformation
-
Constructor Details
-
SymmetricCipher
public SymmetricCipher(CipherInformation cipherInformation, KeyStoreInformation keystoreInformation) -
SymmetricCipher
-
SymmetricCipher
-
-
Method Details
-
getKey
Description copied from class:BaseCipherReturns the correct key for correct operation- Specified by:
getKeyin classBaseCipher- Parameters:
operationMode- Ciper operation- Returns:
- A key
-