org.alfresco.encryption
Class SpringKeyResourceLoader

java.lang.Object
  extended by org.alfresco.encryption.SpringKeyResourceLoader
All Implemented Interfaces:
KeyResourceLoader

public class SpringKeyResourceLoader
extends java.lang.Object
implements KeyResourceLoader

Loads key resources (key store and key store passwords) from the Spring classpath.

Since:
4.0

Constructor Summary
SpringKeyResourceLoader()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringKeyResourceLoader

public SpringKeyResourceLoader()
Method Detail

getKeyStore

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

Specified by:
getKeyStore in interface KeyResourceLoader
Returns:

loadKeyMetaData

public java.util.Properties loadKeyMetaData(java.lang.String keyMetaDataFileLocation)
                                     throws java.io.IOException
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.

Specified by:
loadKeyMetaData in interface KeyResourceLoader
Returns:
Throws:
java.io.IOException


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