Package org.alfresco.encryption
Interface EncryptionKeysRegistry
-
public interface EncryptionKeysRegistryStores registered encryption keys.- Since:
- 4.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classEncryptionKeysRegistry.KEY_STATUS
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EncryptionKeysRegistry.KEY_STATUScheckKey(String keyAlias, Key key)Check the validity of the key against the registry.List<String>getRegisteredKeys(Set<String> keys)Return those keys in the set that have been registered.booleanisKeyRegistered(String keyAlias)Is the key with alias 'keyAlias' registered?voidregisterKey(String keyAlias, Key key)Register the key.voidremoveRegisteredKeys(Set<String> keys)Remove the set of keys from the registry.voidunregisterKey(String keyAlias)Unregister the key.
-
-
-
Method Detail
-
isKeyRegistered
boolean isKeyRegistered(String keyAlias)
Is the key with alias 'keyAlias' registered?- Parameters:
keyAlias- String- Returns:
- boolean
-
registerKey
void registerKey(String keyAlias, Key key)
Register the key.- Parameters:
keyAlias- Stringkey- Key
-
unregisterKey
void unregisterKey(String keyAlias)
Unregister the key.- Parameters:
keyAlias- String
-
checkKey
EncryptionKeysRegistry.KEY_STATUS checkKey(String keyAlias, Key key)
Check the validity of the key against the registry.- Parameters:
keyAlias- Stringkey- Key- Returns:
- KEY_STATUS
-
removeRegisteredKeys
void removeRegisteredKeys(Set<String> keys)
Remove the set of keys from the registry.- Parameters:
keys- Set
-
-