public class KeyStoreMaterialsProvider extends Object implements EncryptionMaterialsProvider
| Constructor and Description |
|---|
KeyStoreMaterialsProvider(KeyStore keyStore,
String encryptionAlias,
String signingAlias,
KeyStore.ProtectionParameter encryptionProtection,
KeyStore.ProtectionParameter signingProtection,
Map<String,String> description) |
KeyStoreMaterialsProvider(KeyStore keyStore,
String encryptionAlias,
String signingAlias,
Map<String,String> description) |
| Modifier and Type | Method and Description |
|---|---|
DecryptionMaterials |
getDecryptionMaterials(EncryptionContext context)
Retrieves encryption materials matching the specified description from some source.
|
EncryptionMaterials |
getEncryptionMaterials(EncryptionContext context)
Returns EncryptionMaterials which the caller can use for encryption.
|
void |
refresh()
Reloads the keys from the underlying keystore by calling
KeyStore.getEntry(String,
ProtectionParameter) again for each of them. |
public KeyStoreMaterialsProvider(KeyStore keyStore, String encryptionAlias, String signingAlias, Map<String,String> description) throws KeyStoreException, NoSuchAlgorithmException, UnrecoverableEntryException
public KeyStoreMaterialsProvider(KeyStore keyStore, String encryptionAlias, String signingAlias, KeyStore.ProtectionParameter encryptionProtection, KeyStore.ProtectionParameter signingProtection, Map<String,String> description) throws KeyStoreException, NoSuchAlgorithmException, UnrecoverableEntryException
public DecryptionMaterials getDecryptionMaterials(EncryptionContext context)
EncryptionMaterialsProvidergetDecryptionMaterials 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)
EncryptionMaterialsProvidergetEncryptionMaterials 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()
KeyStore.getEntry(String,
ProtectionParameter) again for each of them.refresh in interface EncryptionMaterialsProviderCopyright © 2021. All rights reserved.