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