Class SigningCertificateRequirements
java.lang.Object
se.idsec.signservice.integration.certificate.SigningCertificateRequirements
- All Implemented Interfaces:
Serializable
,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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder forSigningCertificateRequirements
objects -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.SigningCertificateRequirements
(CertificateType certificateType, List<CertificateAttributeMapping> attributeMappings, Extension extension) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the mappings between the signer's authentication attributes and attributes that are to be placed in the issued signature certificate.Gets the requested certificate type.Returns the extension parameters for the instance.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.void
setCertificateType
(CertificateType certificateType) Assigns the requested certificate type.void
setExtension
(Extension extension) Assigns the extension parameters for the instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface se.idsec.signservice.integration.core.Extensible
addExtensionValue, getExtensionValue
-
Constructor Details
-
SigningCertificateRequirements
public SigningCertificateRequirements()Default constructor. -
SigningCertificateRequirements
public SigningCertificateRequirements(CertificateType certificateType, List<CertificateAttributeMapping> attributeMappings, Extension extension) Constructor.- Parameters:
certificateType
- the requested certificate typeattributeMappings
- mappings between the signer's authentication attributes and attributes that are to be placed in the issued signature certificateextension
- extensions for the object
-
-
Method Details
-
getCertificateType
Gets the requested certificate type.- Returns:
- the requested certificate type
-
setCertificateType
Assigns the requested certificate type.- Parameters:
certificateType
- requested certificate type
-
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
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
Returns the extension parameters for the instance.- Specified by:
getExtension
in interfaceExtensible
- Returns:
- the extension, or
null
if no extensions are set
-
setExtension
Assigns the extension parameters for the instance.- Specified by:
setExtension
in interfaceExtensible
- Parameters:
extension
- the extension
-