Class StaticPkcs11Configuration

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

public class StaticPkcs11Configuration extends AbstractSunPkcs11Configuration
A Pkcs11Configuration where the SunPKCS11 provider is statically configured (see below).

A SunPKCS11 provider can be statically configured in the java.security file. For example:

 ...
 security.provider.13=SunPKCS11 /opt/bar/cfg/pkcs11.cfg
 ...
 

See PKCS#11 Reference Guide.

Author:
Martin Lindström
  • Constructor Details

    • StaticPkcs11Configuration

      public StaticPkcs11Configuration()
      Default constructor.
    • StaticPkcs11Configuration

      public StaticPkcs11Configuration(@Nullable String providerName)
      Parameters:
      providerName - the security provider name (SunPKCS11 is the default)
  • Method Details

    • getConfigurationData

      @Nullable protected String getConfigurationData()
      Returns null since this configuration represents a static configuration.
      Specified by:
      getConfigurationData in class AbstractSunPkcs11Configuration
      Returns:
      configuration data for a PKCS#11 provider, or null if no configuration is needed