org.alfresco.encryption
Interface KeyResourceLoader

All Known Implementing Classes:
SpringKeyResourceLoader

public interface KeyResourceLoader

Manages key resources (key store and key store passwords)

Since:
4.0

Method Summary
 java.io.InputStream getKeyStore(java.lang.String keyStoreLocation)
          Loads and returns an InputStream of the key store at the configured location.
 java.util.Properties loadKeyMetaData(java.lang.String keyMetaDataFileLocation)
          Loads key metadata from the configured passwords file location.
 

Method Detail

getKeyStore

java.io.InputStream getKeyStore(java.lang.String keyStoreLocation)
                                throws java.io.FileNotFoundException
Loads and returns an InputStream of the key store at the configured location. If the file cannot be found this method returns null.

Returns:
Throws:
java.io.FileNotFoundException

loadKeyMetaData

java.util.Properties loadKeyMetaData(java.lang.String keyMetaDataFileLocation)
                                     throws java.io.IOException,
                                            java.io.FileNotFoundException
Loads key metadata from the configured passwords file location. Note that the passwords are not cached locally. If the file cannot be found this method returns null.

Returns:
Throws:
java.io.IOException
java.io.FileNotFoundException


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