Class FilePkcs11Configuration
java.lang.Object
se.swedenconnect.security.credential.pkcs11.AbstractSunPkcs11Configuration
se.swedenconnect.security.credential.pkcs11.FilePkcs11Configuration
- All Implemented Interfaces:
Pkcs11Configuration
A
Pkcs11Configuration where a PKCS#11 configuration file is supplied.
Note: This implementation assumes that the SunPKCS11 security provider is used, or other security providers that
supports the KeyStoreSpi. See AbstractSunPkcs11Configuration.
- Author:
- Martin Lindström
-
Field Summary
Fields inherited from class se.swedenconnect.security.credential.pkcs11.AbstractSunPkcs11Configuration
DEFAULT_PROVIDER_NAME -
Constructor Summary
ConstructorsConstructorDescriptionFilePkcs11Configuration(String configurationFile) Constructor assigning the external PKCS#11 configuration file.FilePkcs11Configuration(String configurationFile, String baseProviderName) Constructor assigning the external PKCS#11 configuration file and a "base provider name". -
Method Summary
Methods inherited from class se.swedenconnect.security.credential.pkcs11.AbstractSunPkcs11Configuration
getBaseProviderName, getProvider, init
-
Constructor Details
-
FilePkcs11Configuration
Constructor assigning the external PKCS#11 configuration file.- Parameters:
configurationFile- complete path to the PKCS#11 configuration file
-
FilePkcs11Configuration
public FilePkcs11Configuration(@Nonnull String configurationFile, @Nullable String baseProviderName) Constructor assigning the external PKCS#11 configuration file and a "base provider name".The
baseProviderNameis the name of the security provider that we use to create new instances that have names according to<base-provider-name>-<instance-name>, where 'instance-name' is gotten from the configuration. Implementations wishing to use another provider than "SunPKCS11" should supply this provider name.- Parameters:
configurationFile- complete path to the PKCS#11 configuration filebaseProviderName- base provider name
-
-
Method Details
-
getConfigurationData
Returns the configuration file.- Specified by:
getConfigurationDatain classAbstractSunPkcs11Configuration- Returns:
- configuration data for a PKCS#11 provider, or
nullif no configuration is needed
-
toString
- Overrides:
toStringin classAbstractSunPkcs11Configuration
-