Class FilePkcs11Configuration

java.lang.Object
se.swedenconnect.security.credential.pkcs11.AbstractSunPkcs11Configuration
se.swedenconnect.security.credential.pkcs11.FilePkcs11Configuration
All Implemented Interfaces:
Pkcs11Configuration

public class FilePkcs11Configuration extends AbstractSunPkcs11Configuration
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.

See PKCS#11 Reference Guide.

Author:
Martin Lindström
  • Constructor Details

    • FilePkcs11Configuration

      public FilePkcs11Configuration(@Nonnull String configurationFile)
      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 baseProviderName is 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 file
      baseProviderName - base provider name
  • Method Details