Package org.forgerock.secrets.keystore
Class HsmKeyStoreLoader
- java.lang.Object
 - 
- org.forgerock.secrets.keystore.HsmKeyStoreLoader
 
 
- 
- All Implemented Interfaces:
 Function<char[],KeyStore,KeyStoreException>
public final class HsmKeyStoreLoader extends Object implements Function<char[],KeyStore,KeyStoreException>
A loader for theKeyStoreSecretStorethat knows how to load standard PKCS#11 Hardware Security Module (HSM) providers on our supported platforms. Oracle and IBM JREs are currently supported.- See Also:
 - Java PKCS#11 Guide.
 
 
- 
- 
Constructor Summary
Constructors Constructor Description HsmKeyStoreLoader(String configFilePath)Initializes the HSM loader with a supported PKCS#11 provider for the current platform and the given PKCS#11 configuration file.HsmKeyStoreLoader(Provider hsmProvider)Initializes the HSM loader with the given PKCS#11 provider. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyStoreapply(char[] password)Applies this function to the input parametervalueand returns the result. 
 - 
 
- 
- 
Constructor Detail
- 
HsmKeyStoreLoader
public HsmKeyStoreLoader(Provider hsmProvider)
Initializes the HSM loader with the given PKCS#11 provider.- Parameters:
 hsmProvider- the provider object.
 
- 
HsmKeyStoreLoader
public HsmKeyStoreLoader(String configFilePath)
Initializes the HSM loader with a supported PKCS#11 provider for the current platform and the given PKCS#11 configuration file.- Parameters:
 configFilePath- the PKCS#11 configuration file path.- See Also:
 - Oracle PKCS#11 Configuration Guide., IBM PKCS#11 Configuration Guide.
 
 
 - 
 
- 
Method Detail
- 
apply
public KeyStore apply(char[] password) throws KeyStoreException
Description copied from interface:FunctionApplies this function to the input parametervalueand returns the result.- Specified by:
 applyin interfaceFunction<char[],KeyStore,KeyStoreException>- Parameters:
 password- The input parameter.- Returns:
 - The result of applying this function to 
value. - Throws:
 KeyStoreException
 
 - 
 
 -