public class HardwareKeyStoreKeyMasterConfiguration extends java.lang.Object implements IKeyMasterConfiguration
HardwareKeyStoreKeyMasterConfiguration
class creates a configuration for KeyMaster using a private key stored in
a hardware keystore.Constructor and Description |
---|
HardwareKeyStoreKeyMasterConfiguration(java.lang.String keystoreFilename,
java.lang.String keystoreType,
java.lang.String keystorePassPhrase,
java.lang.String keystoreKey,
java.lang.String keystoreKeyPassPhrase,
KeyMasterHashingAlgorithm hashingAlgorithm,
java.lang.String securityProviderName)
Initializes a new instance of the
HardwareKeyStoreKeyMasterConfiguration class that uses the private key in the
supplied hardware keystore. |
Modifier and Type | Method and Description |
---|---|
KeyMasterHashingAlgorithm |
getHashingAlgorithm()
Gets the hashing algorithm that is used to generate the KeyMaster token.
|
java.security.PrivateKey |
getPrivateKey()
Gets a private key object.
|
java.lang.String |
getSecurityProviderName()
The name of the Java Security provider to be used to generate the token.
|
java.lang.String |
toString() |
public HardwareKeyStoreKeyMasterConfiguration(java.lang.String keystoreFilename, java.lang.String keystoreType, java.lang.String keystorePassPhrase, java.lang.String keystoreKey, java.lang.String keystoreKeyPassPhrase, KeyMasterHashingAlgorithm hashingAlgorithm, java.lang.String securityProviderName) throws java.lang.Exception
HardwareKeyStoreKeyMasterConfiguration
class that uses the private key in the
supplied hardware keystore.keystoreFilename
- the filename ofkeystoreType
- the keystore typekeystorePassPhrase
- the keystore pass phrasekeystoreKey
- the keystore keykeystoreKeyPassPhrase
- the keystore key pass phrasehashingAlgorithm
- The hashing algorithm to use.securityProviderName
- The name of the security provider to use.java.lang.Exception
- exception thrown if there is any problem initiating the hardware keystore with the provided parameters.public java.security.PrivateKey getPrivateKey()
IKeyMasterConfiguration
The KeyMaster token generator retrieves this property whenever it needs to generate a token.
getPrivateKey
in interface IKeyMasterConfiguration
public KeyMasterHashingAlgorithm getHashingAlgorithm()
IKeyMasterConfiguration
getHashingAlgorithm
in interface IKeyMasterConfiguration
public java.lang.String getSecurityProviderName()
getSecurityProviderName
in interface IKeyMasterConfiguration
public java.lang.String toString()
toString
in class java.lang.Object
Please send bug reports and comments to Caplin support