Class CertificateAttributeMapping
java.lang.Object
se.idsec.signservice.integration.certificate.CertificateAttributeMapping
- All Implemented Interfaces:
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder forCertificateAttributeMapping
objects. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.CertificateAttributeMapping
(List<SignerIdentityAttribute> sources, RequestedCertificateAttribute destination) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the requested destination attribute gives information about which type of certificate attribute to create, and possibly its default value.Gets the list of signer source attributes from where the sign service gets information in order to create the requested certificate attribute.void
setDestination
(RequestedCertificateAttribute destination) Assigns the requested destination attribute gives information about which type of certificate attribute to create, and possibly its default value.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.
-
Constructor Details
-
CertificateAttributeMapping
public CertificateAttributeMapping()Default constructor. -
CertificateAttributeMapping
public CertificateAttributeMapping(List<SignerIdentityAttribute> sources, RequestedCertificateAttribute destination) Constructor.- Parameters:
sources
- signer source attributesdestination
- requested destination attribute
-
-
Method Details
-
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
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
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
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
-