org.alfresco.encryption
Interface EncryptionKeysRegistry


public interface EncryptionKeysRegistry

Stores registered encryption keys.

Since:
4.0

Nested Class Summary
static class EncryptionKeysRegistry.KEY_STATUS
           
 
Method Summary
 EncryptionKeysRegistry.KEY_STATUS checkKey(java.lang.String keyAlias, java.security.Key key)
          Check the validity of the key against the registry.
 java.util.List getRegisteredKeys(java.util.Set 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 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 -
Returns:

registerKey

void registerKey(java.lang.String keyAlias,
                 java.security.Key key)
Register the key.

Parameters:
keyAlias -
key -

unregisterKey

void unregisterKey(java.lang.String keyAlias)
Unregister the key.

Parameters:
keyAlias -

checkKey

EncryptionKeysRegistry.KEY_STATUS checkKey(java.lang.String keyAlias,
                                           java.security.Key key)
Check the validity of the key against the registry.

Parameters:
keyAlias -
key -
Returns:

removeRegisteredKeys

void removeRegisteredKeys(java.util.Set keys)
Remove the set of keys from the registry.

Parameters:
keys -

getRegisteredKeys

java.util.List getRegisteredKeys(java.util.Set keys)
Return those keys in the set that have been registered.

Parameters:
keys -
Returns:


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.