Class PkiCredentialConfigurationProperties

java.lang.Object
se.swedenconnect.security.credential.factory.PkiCredentialConfigurationProperties

public class PkiCredentialConfigurationProperties extends Object
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 Details

    • PkiCredentialConfigurationProperties

      public PkiCredentialConfigurationProperties()
  • Method Details

    • setPin

      public void setPin(char[] pin)
      Assigns the PIN (which is the same as keyPassword. Used mainly for PKCS#11.
      Parameters:
      pin - the PIN
    • getPin

      public char[] getPin()
      Gets the PIN (which is the same as keyPassword). Used mainly for PKCS#11.
      Returns:
      the PIN
    • isEmpty

      public boolean isEmpty()
      Predicate that returns true if this object is "empty", meaning that no settings have been applied.
      Returns:
      true if empty and false otherwise