Class PkiCredentialFactoryBean

All Implemented Interfaces:
Aware, BeanClassLoaderAware, BeanFactoryAware, DisposableBean, FactoryBean<PkiCredential>, InitializingBean

@Deprecated(since="2.0.0", forRemoval=true) public class PkiCredentialFactoryBean extends PkiCredentialFactoryBean
Deprecated, for removal: This API element is subject to removal in a future version.
A utility factory that can create any type of PkiCredential.

This implementation will be removed in future releases. Consider using PkiCredentialFactory or PkiCredentialFactoryBean instead.

Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
  • Constructor Details

    • PkiCredentialFactoryBean

      public PkiCredentialFactoryBean()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Default constructor.
    • PkiCredentialFactoryBean

      public PkiCredentialFactoryBean(@Nonnull PkiCredentialConfigurationProperties properties)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constructor that initializes the factory from the supplied credential configuration properties object.
      Parameters:
      properties - credential configuration properties
  • Method Details

    • createInstance

      @Nonnull protected PkiCredential createInstance() throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      createInstance in class PkiCredentialFactoryBean
      Throws:
      Exception
    • setName

      public void setName(String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Assigns the name of the credential.
      Parameters:
      name - the credential name
    • setCertificate

      public void setCertificate(Resource certificate)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Assigns the resource holding the certificate part of the credential (optional since the certificate may be part of a keystore).
      Parameters:
      certificate - certificate resource
    • setCertificates

      public void setCertificates(List<Resource> certificates)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Assigns the list of resources holding the certificate chain that part of the credential (optional since the certificate may be part of a keystore). If used, the entity certificate must be the first element.
      Parameters:
      certificates - a list of certificate resources
    • setPrivateKey

      public void setPrivateKey(Resource privateKey)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Assigns the resource holding the private key part of the credential (optional since the key may be part of a keystore).
      Parameters:
      privateKey - private key resource
    • setResource

      public void setResource(Resource resource)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Assigns the resource to the keystore containing the credential.
      Parameters:
      resource - the keystore resource
    • setPassword

      public void setPassword(char[] password)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Assigns the keystore password.
      Parameters:
      password - keystore password
    • setType

      public void setType(String type)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Assigns the type of keystore.
      Parameters:
      type - the keystore type
    • setProvider

      public void setProvider(String provider)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Assigns the name of the security provider to use when creating the KeyStore instance.
      Parameters:
      provider - security provider name
    • setPkcs11Configuration

      public void setPkcs11Configuration(String pkcs11Configuration)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Assigns the PKCS#11 configuration file to use.
      Parameters:
      pkcs11Configuration - PKCS#11 configuration file (full path)
    • setAlias

      public void setAlias(String alias)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Assigns the keystore alias to the entry holding the key pair.
      Parameters:
      alias - keystore alias
    • setKeyPassword

      public void setKeyPassword(char[] keyPassword)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Assigns the password to unlock the private key from the keystore.
      Parameters:
      keyPassword - the key password
    • setPin

      public void setPin(char[] pin)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Assigns the PIN. The same as keyPassword (used mainly for PKCS#11 credentials).
      Parameters:
      pin - the PIN
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      afterPropertiesSet in interface InitializingBean
      Overrides:
      afterPropertiesSet in class PkiCredentialFactoryBean
      Throws:
      Exception