Class CertificateAttributeMapping

java.lang.Object
se.idsec.signservice.integration.certificate.CertificateAttributeMapping
All Implemented Interfaces:
Serializable

public class CertificateAttributeMapping extends Object implements Serializable
Describes how a signer's identity attribute(s) are mapped to a certificate attribute to be placed in the issued signature certificate.
Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
See Also:
  • Constructor Details

    • CertificateAttributeMapping

      public CertificateAttributeMapping()
      Default constructor.
    • CertificateAttributeMapping

      public CertificateAttributeMapping(List<SignerIdentityAttribute> sources, RequestedCertificateAttribute destination)
      Constructor.
      Parameters:
      sources - signer source attributes
      destination - requested destination attribute
  • Method Details

    • getSources

      public List<SignerIdentityAttribute> getSources()
      Gets the list of signer source attributes from where the sign service gets information in order to create the requested certificate attribute.
      Returns:
      a list of source attributes
    • setSources

      public void setSources(List<SignerIdentityAttribute> sources)
      Assigns the list of signer source attributes from where the sign service gets information in order to create the requested certificate attribute. If more than one attribute is given, the order is important as the sign service tries the given source attributes in order.
      Parameters:
      sources - a list of source attributes
    • getDestination

      public RequestedCertificateAttribute getDestination()
      Gets the requested destination attribute gives information about which type of certificate attribute to create, and possibly its default value.
      Returns:
      the destination attribute
    • setDestination

      public void setDestination(RequestedCertificateAttribute destination)
      Assigns the requested destination attribute gives information about which type of certificate attribute to create, and possibly its default value.
      Parameters:
      destination - the destination attribute
    • builder

    • toBuilder

    • toString

      public String toString()
      Overrides:
      toString in class Object