public class SymmetricStaticProvider extends Object implements EncryptionMaterialsProvider
| Constructor and Description |
|---|
SymmetricStaticProvider(SecretKey encryptionKey,
KeyPair signingPair) |
SymmetricStaticProvider(SecretKey encryptionKey,
KeyPair signingPair,
Map<String,String> description) |
SymmetricStaticProvider(SecretKey encryptionKey,
SecretKey macKey) |
SymmetricStaticProvider(SecretKey encryptionKey,
SecretKey macKey,
Map<String,String> description) |
| Modifier and Type | Method and Description |
|---|---|
DecryptionMaterials |
getDecryptionMaterials(EncryptionContext context)
Returns the
encryptionKey provided to the constructor if and only if
materialDescription is a super-set (may be equal) to the description
provided to the constructor. |
EncryptionMaterials |
getEncryptionMaterials(EncryptionContext context)
Returns the
encryptionKey provided to the constructor. |
void |
refresh()
Does nothing.
|
public SymmetricStaticProvider(SecretKey encryptionKey, KeyPair signingPair)
encryptionKey - the value to be returned by getEncryptionMaterials(EncryptionContext) and getDecryptionMaterials(EncryptionContext)signingPair - the keypair used to sign/verify the data stored in Dynamo. If only the
public key is provided, then this provider may be used for decryption, but not encryption.public SymmetricStaticProvider(SecretKey encryptionKey, KeyPair signingPair, Map<String,String> description)
encryptionKey - the value to be returned by getEncryptionMaterials(EncryptionContext) and getDecryptionMaterials(EncryptionContext)signingPair - the keypair used to sign/verify the data stored in Dynamo. If only the
public key is provided, then this provider may be used for decryption, but not encryption.description - the value to be returned by CryptographicMaterials.getMaterialDescription() for any CryptographicMaterials
returned by this object.public SymmetricStaticProvider(SecretKey encryptionKey, SecretKey macKey)
encryptionKey - the value to be returned by getEncryptionMaterials(EncryptionContext) and getDecryptionMaterials(EncryptionContext)macKey - the key used to sign/verify the data stored in Dynamo.public SymmetricStaticProvider(SecretKey encryptionKey, SecretKey macKey, Map<String,String> description)
encryptionKey - the value to be returned by getEncryptionMaterials(EncryptionContext) and getDecryptionMaterials(EncryptionContext)macKey - the key used to sign/verify the data stored in Dynamo.description - the value to be returned by CryptographicMaterials.getMaterialDescription() for any CryptographicMaterials
returned by this object.public DecryptionMaterials getDecryptionMaterials(EncryptionContext context)
encryptionKey provided to the constructor if and only if
materialDescription is a super-set (may be equal) to the description
provided to the constructor.getDecryptionMaterials in interface EncryptionMaterialsProvidercontext - Information to assist in selecting a the proper return value. The implementation
is free to determine the minimum necessary for successful processing.public EncryptionMaterials getEncryptionMaterials(EncryptionContext context)
encryptionKey provided to the constructor.getEncryptionMaterials in interface EncryptionMaterialsProvidercontext - Information to assist in selecting a the proper return value. The implementation
is free to determine the minimum necessary for successful processing.public void refresh()
refresh in interface EncryptionMaterialsProviderCopyright © 2021. All rights reserved.