Class AbstractBaseCredentialConfigurationProperties

java.lang.Object
se.swedenconnect.security.credential.config.properties.AbstractBaseCredentialConfigurationProperties
All Implemented Interfaces:
BaseCredentialConfiguration
Direct Known Subclasses:
PemCredentialConfigurationProperties, StoreCredentialConfigurationProperties

public class AbstractBaseCredentialConfigurationProperties extends Object implements BaseCredentialConfiguration
Implementation of BaseCredentialConfiguration.
Author:
Martin Lindström
  • Constructor Details

    • AbstractBaseCredentialConfigurationProperties

      public AbstractBaseCredentialConfigurationProperties()
  • Method Details

    • getName

      @Nullable public String getName()
      Gets the name of the credential.
      Returns:
      the credential name
    • setName

      public void setName(@Nullable String name)
      Assigns the name of the credential.
      Parameters:
      name - the credential name
    • getKeyId

      @Nullable public String getKeyId()
      Gets the key identifier metadata property.
      Returns:
      the key identifier
    • setKeyId

      public void setKeyId(@Nullable String keyId)
      Assigns the key identifier metadata property.
      Parameters:
      keyId - the key identifier
    • getIssuedAt

      @Nullable public Instant getIssuedAt()
      Gets the issued-at metadata property.
      Returns:
      the issued-at instant
    • setIssuedAt

      public void setIssuedAt(@Nullable Instant issuedAt)
      Assigns the issued-at metadata property.
      Parameters:
      issuedAt - the issued-at instant
    • getExpiresAt

      @Nullable public Instant getExpiresAt()
      Gets the expires-at metadata property.
      Returns:
      the expires-at instant
    • setExpiresAt

      public void setExpiresAt(@Nullable Instant expiresAt)
      Assigns the expires-at metadata property.
      Parameters:
      expiresAt - the expires-at instant
    • getActiveFrom

      @Nullable public Instant getActiveFrom()
      Gets the active-from metadata property.
      Returns:
      the active-from instant
    • setActiveFrom

      public void setActiveFrom(@Nullable Instant activeFrom)
      Assigns the active-from metadata property.
      Parameters:
      activeFrom - the active-from instant
    • getActiveTo

      @Nullable public Instant getActiveTo()
      Gets the active-to metadata property.
      Returns:
      the active-to instant
    • setActiveTo

      public void setActiveTo(@Nullable Instant activeTo)
      Assigns the active-to metadata property.
      Parameters:
      activeTo - the active-to instant
    • getUsage

      @Nullable public String getUsage()
      Gets the usage metadata property.
      Returns:
      the usage
    • setUsage

      public void setUsage(@Nullable String usage)
      Assigns the usage metadata property.
      Parameters:
      usage - the usage
    • getMetadata

      @Nonnull public Map<String,String> getMetadata()
      Gets the credential metadata properties.
      Returns:
      a (mutable) map of metadata properties
    • name

      public Optional<String> name()
      The name of the credential.
      Specified by:
      name in interface BaseCredentialConfiguration
      Returns:
      the name of the credential
    • keyId

      public Optional<String> keyId()
      Metadata property for key identifier.
      Specified by:
      keyId in interface BaseCredentialConfiguration
      Returns:
      property for key identifier
    • issuedAt

      public Optional<Instant> issuedAt()
      Metadata property for issued-at.
      Specified by:
      issuedAt in interface BaseCredentialConfiguration
      Returns:
      property for issued-at
    • expiresAt

      public Optional<Instant> expiresAt()
      Metadata property for expires-at.
      Specified by:
      expiresAt in interface BaseCredentialConfiguration
      Returns:
      property for expires-at
    • activeFrom

      public Optional<Instant> activeFrom()
      Metadata property for active-from.
      Specified by:
      activeFrom in interface BaseCredentialConfiguration
      Returns:
      property for active-from
    • activeTo

      public Optional<Instant> activeTo()
      Metadata property for active-to.
      Specified by:
      activeTo in interface BaseCredentialConfiguration
      Returns:
      property for active-to
    • usage

      public Optional<String> usage()
      Metadata property for (credential) usage.
      Specified by:
      usage in interface BaseCredentialConfiguration
      Returns:
      property for usage
    • metadata

      public Optional<Map<String,String>> metadata()
      Additional metadata properties.
      Specified by:
      metadata in interface BaseCredentialConfiguration
      Returns:
      additional metadata properties
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object