Class VisiblePdfSignatureUserInformation.SignerName
java.lang.Object
se.idsec.signservice.integration.document.pdf.VisiblePdfSignatureUserInformation.SignerName
- All Implemented Interfaces:
Serializable
- Enclosing class:
VisiblePdfSignatureUserInformation
public static class VisiblePdfSignatureUserInformation.SignerName
extends Object
implements Serializable
Class representing the input needed to display the signer name in a visible PDF signature.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder forSignerName
objects. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the string the may be supplied to change how the signer's information is displayed.Gets the list of attribute names that refer to some, or all, attributes supplied inAuthnRequirements.setRequestedSignerAttributes(List)
that are the requirements that the signer requires to be validated as part of the signature operation.void
setFormatting
(String formatting) Assigns the string the may be supplied to change how the signer's information is displayed.void
setSignerAttributes
(List<SignerIdentityAttribute> signerAttributes) Assigns the list of attribute names that refer to some, or all, attributes supplied inAuthnRequirements.setRequestedSignerAttributes(List)
that are the requirements that the signer requires to be validated as part of the signature operation.
-
Constructor Details
-
SignerName
public SignerName()
-
-
Method Details
-
getSignerAttributes
Gets the list of attribute names that refer to some, or all, attributes supplied inAuthnRequirements.setRequestedSignerAttributes(List)
that are the requirements that the signer requires to be validated as part of the signature operation. The values of the given attributes will be part of the signer name field as they appear in the list (separated by a blank). It is possible to change how the information is displayed by assigning a formatting, seesetFormatting(String)
.- Returns:
- a list of attribute names whose values should be used to display the signer name in the visible PDF signature
-
setSignerAttributes
Assigns the list of attribute names that refer to some, or all, attributes supplied inAuthnRequirements.setRequestedSignerAttributes(List)
that are the requirements that the signer requires to be validated as part of the signature operation. The values of the given attributes will be part of the signer name field as they appear in the list (separated by a blank). It is possible to change how the information is displayed by assigning a formatting, seesetFormatting(String)
.- Parameters:
signerAttributes
- a list of attribute names whose values should be used to display the signer name in the visible PDF signature
-
getFormatting
Gets the string the may be supplied to change how the signer's information is displayed. Each list item fromgetSignerAttributes()
is referenced by its order (starting from 0) and prefixed by %. For example, the formatting string"%1 %2 (%3)"
may display something likeJim Smith (ID12345)
.- Returns:
- the formatting string or null
-
setFormatting
Assigns the string the may be supplied to change how the signer's information is displayed. Each list item fromgetSignerAttributes()
is referenced by its order (starting from 0) and prefixed by %. For example, the formatting string"%1 %2 (%3)"
may display something likeJim Smith (ID12345)
.- Parameters:
formatting
- the formatting string
-