Package com.caplin.keymaster
Interface IKeyMasterConfiguration
-
- All Known Implementing Classes:
HardwareKeyStoreKeyMasterConfiguration
,PEMPKCS8KeyMasterConfiguration
public interface IKeyMasterConfiguration
Represents the configuration interface used by KeyMaster.Implement this interface if your KeyMaster deployment cannot obtain the private key from a PEM file.
A Standard implementations of this interface is provided with KeyMaster for loading the private key from a PEM file; see
PEMPKCS8KeyMasterConfiguration
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
getPrivateKey
java.security.PrivateKey getPrivateKey()
Gets a private key object.The KeyMaster token generator retrieves this property whenever it needs to generate a token.
- Returns:
- The private key.
-
getHashingAlgorithm
KeyMasterHashingAlgorithm getHashingAlgorithm()
Gets the hashing algorithm that is used to generate the KeyMaster token.- Returns:
- The hashing algorithm.
-
getSecurityProviderName
java.lang.String getSecurityProviderName()
The name of the Java Security provider to be used to generate the token. If set to null the token generation traverses the list of registered security Providers, starting with the most preferred Provider, the first provider that supports the specified signature algorithm will be used.- Returns:
- The name of the security provider or null.
-
-