Class SignRequestInput
- All Implemented Interfaces:
Serializable
,Extensible
SignServiceIntegrationService.createSignRequest(SignRequestInput)
operation.- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder forSignRequestInput
. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the requirements that the sign requester has on the principal that is to perform the signature operation.Gets the requirements for the signature certificate that will be issued by the sign service.Gets the correlation ID for the process.Gets the signature service URL to where SignRequest messages should be posted.Returns the extension parameters for the instance.Gets the policy.Gets the URL to which the user agent along with the sign response message should be directed after a signature operation.Gets the algorithm identifier for the signature algorithm that should be used to sign the specified documents.Gets the sign message parameters that is used to build the sign message element that is included in the SignRequest.Gets the entityID of the entity that requests a signature.Gets the document(s) to be signed along with a per-document signing requirements and parameters.void
setAuthnRequirements
(AuthnRequirements authnRequirements) Assigns the requirements that the sign requester has on the principal that is to perform the signature operation.void
setCertificateRequirements
(SigningCertificateRequirements certificateRequirements) Assigns the requirements for the signature certificate that will be issued by the sign service.void
setCorrelationId
(String correlationId) Assigns the correlation ID for the process.void
setDestinationUrl
(String destinationUrl) Assigns the signature service URL to where SignRequest messages should be posted.void
setExtension
(Extension extension) Assigns the extension parameters for the instance.void
Assigns the policy to use.void
setReturnUrl
(String returnUrl) Assigns the URL to which the user agent along with the sign response message should be directed after a signature operation.void
setSignatureAlgorithm
(String signatureAlgorithm) Assigns the algorithm identifier for the signature algorithm that should be used to sign the specified documents.void
setSignMessageParameters
(SignMessageParameters signMessageParameters) Assigns the sign message parameters that is used to build the sign message element that is included in the SignRequest.void
setSignRequesterID
(String signRequesterID) Assigns the entityID of the entity that requests a signature.void
setTbsDocuments
(List<TbsDocument> tbsDocuments) Assigns the document(s) to be signed along with a per-document signing requirements and parameters.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
-
SignRequestInput
public SignRequestInput()Constructor.
-
-
Method Details
-
getCorrelationId
Gets the correlation ID for the process.See
setCorrelationId(String)
for more information about the correlation ID.- Returns:
- the correlation ID or null if not has been assigned
-
setCorrelationId
Assigns the correlation ID for the process.A sign requester may want to have the possibility to track an operation (via logs or by other means). Therefore, the use of correlation ID:s is supported by the SignService Integration Service. If a correlation ID is supplied this will be used in process and audit logs, and will be tied to the actual signature state ID that is generated by the SignService Integration Service.
Note: The correlation ID is never sent to the sign service. It is only used within the SignService Integration Service.
- Parameters:
correlationId
- the correlation ID
-
getPolicy
Gets the policy.- Returns:
- the policy identifier for this operation, or
null
(that denotes the default policy)
-
setPolicy
Assigns the policy to use.A SignService Integration Service may be running under different policies, where a policy tells which
IntegrationServiceDefaultConfiguration
that is active.- Parameters:
policy
- the policy identifier to use for the operation
-
getSignRequesterID
Gets the entityID of the entity that requests a signature.- Returns:
- the sign requester ID, or
null
if the default ID should be used
-
setSignRequesterID
Assigns the entityID of the entity that requests a signature.If not provided the SignatureService Integration Service will use the default sign requester ID (
IntegrationServiceDefaultConfiguration.getDefaultSignRequesterID()
).- Parameters:
signRequesterID
- the sign requester ID
-
getReturnUrl
Gets the URL to which the user agent along with the sign response message should be directed after a signature operation.- Returns:
- the URL to which a sign response is to be returned, or
null
if the default URL should be used
-
setReturnUrl
Assigns the URL to which the user agent along with the sign response message should be directed after a signature operation.If not provided the SignatureService Integration Service will use the default return URL (
IntegrationServiceDefaultConfiguration.getDefaultReturnUrl()
).- Parameters:
returnUrl
- the URL to which a sign response is to be returned
-
getDestinationUrl
Gets the signature service URL to where SignRequest messages should be posted.- Returns:
- the signature service URL to where SignRequest messages should be posted, or
null
if the default should be used
-
setDestinationUrl
Assigns the signature service URL to where SignRequest messages should be posted.If not provided the SignatureService Integration Service will use the default return URL (
IntegrationServiceDefaultConfiguration.getDefaultDestinationUrl()
).- Parameters:
destinationUrl
- the signature service URL to where SignRequest messages should be posted
-
getSignatureAlgorithm
Gets the algorithm identifier for the signature algorithm that should be used to sign the specified documents.- Returns:
- signature algorithm identifier, or
null
for default algorithm
-
setSignatureAlgorithm
Assigns the algorithm identifier for the signature algorithm that should be used to sign the specified documents.If not provided the SignatureService Integration Service will use the default signature algorithm (
IntegrationServiceDefaultConfiguration.getDefaultSignatureAlgorithm()
).- Parameters:
signatureAlgorithm
- signature algorithm identifier
-
getAuthnRequirements
Gets the requirements that the sign requester has on the principal that is to perform the signature operation.- Returns:
- the authentication requirements
-
setAuthnRequirements
Assigns the requirements that the sign requester has on the principal that is to perform the signature operation.- Parameters:
authnRequirements
- authentication requirements
-
getCertificateRequirements
Gets the requirements for the signature certificate that will be issued by the sign service.- Returns:
- requirements for the signing certificate, or
null
for default requirements
-
setCertificateRequirements
Assigns the requirements for the signature certificate that will be issued by the sign service.If not provided the SignatureService Integration Service will use the default requirements (
IntegrationServiceDefaultConfiguration.getDefaultCertificateRequirements()
).- Parameters:
certificateRequirements
- the requirements for the signing certificate
-
getTbsDocuments
Gets the document(s) to be signed along with a per-document signing requirements and parameters.- Returns:
- a list of To-be-signed documents
-
setTbsDocuments
Assigns the document(s) to be signed along with a per-document signing requirements and parameters. At least one document must be supplied.- Parameters:
tbsDocuments
- a list of To-be-signed documents
-
getSignMessageParameters
Gets the sign message parameters that is used to build the sign message element that is included in the SignRequest.- Returns:
- the sign message parameters
-
setSignMessageParameters
Assigns the sign message parameters that is used to build the sign message element that is included in the SignRequest.- Parameters:
signMessageParameters
- the sign message parameters
-
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
-