Class PkiCredentialConfigurationProperties

java.lang.Object
se.swedenconnect.security.credential.config.properties.PkiCredentialConfigurationProperties
se.swedenconnect.security.credential.factory.PkiCredentialConfigurationProperties
All Implemented Interfaces:
PkiCredentialConfiguration

@Deprecated(since="2.0.0", forRemoval=true) public class PkiCredentialConfigurationProperties extends PkiCredentialConfigurationProperties
Deprecated, for removal: This API element is subject to removal in a future version.
A utility class that can be used as a configuration properties object for representing a credential (for Spring Boot).
Author:
Martin Lindström (martin@idsec.se)
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    char[]
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the PIN (which is the same as keyPassword).
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Predicate that tells whether any of the deprecated properties are set.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Predicate that returns true if this object is "empty", meaning that no settings have been applied.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Moves deprecated properties into the pem or jks properties.
    void
    setPin(char[] pin)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Assigns the PIN (which is the same as keyPassword).

    Methods inherited from class se.swedenconnect.security.credential.config.properties.PkiCredentialConfigurationProperties

    bundle, jks, pem

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PkiCredentialConfigurationProperties

      public PkiCredentialConfigurationProperties()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • setPin

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

      public char[] getPin()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the PIN (which is the same as keyPassword). Used mainly for PKCS#11.
      Returns:
      the PIN
    • isEmpty

      public boolean isEmpty()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Predicate that returns true if this object is "empty", meaning that no settings have been applied.
      Returns:
      true if empty and false otherwise
    • hasDeprecatedProperties

      public boolean hasDeprecatedProperties()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Predicate that tells whether any of the deprecated properties are set.
      Returns:
      true if deprecated properties are set
    • afterPropertiesSet

      @PostConstruct public void afterPropertiesSet() throws IllegalArgumentException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      IllegalArgumentException
    • removeDeprecated

      public void removeDeprecated() throws IllegalArgumentException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Moves deprecated properties into the pem or jks properties.
      Throws:
      IllegalArgumentException - for invalid configuration