Class SigningCertificateRequirements

java.lang.Object
se.idsec.signservice.integration.certificate.SigningCertificateRequirements
All Implemented Interfaces:
Serializable, Extensible

public class SigningCertificateRequirements extends Object implements Extensible
When sending a SignRequest, a sign requester specifies a set of requirements for the signature certificate that is generated by the sign service. This class represents these requirements.
Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
See Also:
  • Constructor Details

    • SigningCertificateRequirements

      public SigningCertificateRequirements()
      Default constructor.
    • SigningCertificateRequirements

      public SigningCertificateRequirements(CertificateType certificateType, List<CertificateAttributeMapping> attributeMappings, Extension extension)
      Constructor.
      Parameters:
      certificateType - the requested certificate type
      attributeMappings - mappings between the signer's authentication attributes and attributes that are to be placed in the issued signature certificate
      extension - extensions for the object
  • Method Details

    • getCertificateType

      public CertificateType getCertificateType()
      Gets the requested certificate type.
      Returns:
      the requested certificate type
    • setCertificateType

      public void setCertificateType(CertificateType certificateType)
      Assigns the requested certificate type.
      Parameters:
      certificateType - requested certificate type
    • getAttributeMappings

      public List<CertificateAttributeMapping> getAttributeMappings()
      Gets the mappings between the signer's authentication attributes and attributes that are to be placed in the issued signature certificate.
      Returns:
      a list of mapping directives of how to map from user/signer attributes to signature certificate attributes
    • setAttributeMappings

      public void setAttributeMappings(List<CertificateAttributeMapping> attributeMappings)
      Assigns the mappings between the signer's authentication attributes and attributes that are to be placed in the issued signature certificate.
      Parameters:
      attributeMappings - a list of mapping directives of how to map from user/signer attributes to signature certificate attributes
    • getExtension

      public Extension getExtension()
      Returns the extension parameters for the instance.
      Specified by:
      getExtension in interface Extensible
      Returns:
      the extension, or null if no extensions are set
    • setExtension

      public void setExtension(Extension extension)
      Assigns the extension parameters for the instance.
      Specified by:
      setExtension in interface Extensible
      Parameters:
      extension - the extension
    • builder

    • toBuilder

    • toString

      public String toString()
      Overrides:
      toString in class Object