public interface SecureVault
Modifier and Type | Method and Description |
---|---|
byte[] |
decrypt(byte[] cipherText)
An implementation of this method should delegate the decryption to the underlying
SecretRepository
and get the cipherText decrypted. |
byte[] |
encrypt(byte[] plainText)
An implementation of this method should delegate the encryption to the underlying
SecretRepository
and get the plainText encrypted. |
char[] |
resolve(String alias)
Resolves the given alias in to a plain text password.
|
char[] resolve(String alias) throws SecureVaultException
alias
- alias of the secretSecureVaultException
- on an error while trying to resolve.byte[] encrypt(byte[] plainText) throws SecureVaultException
SecretRepository
and get the plainText
encrypted.plainText
- plain text as a byte arraySecureVaultException
- on an error while trying to encrypt.byte[] decrypt(byte[] cipherText) throws SecureVaultException
SecretRepository
and get the cipherText
decrypted.cipherText
- cipher text as a byte arraySecureVaultException
- on an error while trying to decrypt.Copyright © 2017 WSO2. All rights reserved.