public final class HsmKeyStoreLoader extends Object implements Function<char[],KeyStore,KeyStoreException>
KeyStoreSecretStore
that knows how to load standard PKCS#11 Hardware Security Module
(HSM) providers on our supported platforms. Oracle and IBM JREs are currently supported.Constructor and Description |
---|
HsmKeyStoreLoader(Provider hsmProvider)
Initializes the HSM loader with the given PKCS#11 provider.
|
HsmKeyStoreLoader(String configFilePath)
Initializes the HSM loader with a supported PKCS#11 provider for the current platform and the given PKCS#11
configuration file.
|
Modifier and Type | Method and Description |
---|---|
KeyStore |
apply(char[] password)
Applies this function to the input parameter
value and returns
the result. |
public HsmKeyStoreLoader(Provider hsmProvider)
hsmProvider
- the provider object.public HsmKeyStoreLoader(String configFilePath)
configFilePath
- the PKCS#11 configuration file path.public KeyStore apply(char[] password) throws KeyStoreException
Function
value
and returns
the result.apply
in interface Function<char[],KeyStore,KeyStoreException>
password
- The input parameter.value
.KeyStoreException
Copyright © 2010-2018, ForgeRock All Rights Reserved.