Class SADRequestBuilder
java.lang.Object
se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder<SADRequest>
se.swedenconnect.opensaml.sweid.saml2.signservice.build.SADRequestBuilder
- All Implemented Interfaces:
SAMLObjectBuilder<SADRequest>
Builder for creating a
SADRequest
using the builder pattern.- Author:
- Martin Lindström (martin@idsec.se)
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder for creating aRequestParams
using the builder pattern. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SADRequestBuilder
builder()
Utility method that creates a builder.Assigns the number of requested signatures in the associated sign request.protected Class
<SADRequest> Assigns the ID attribute for theSADRequest
.requestedVersion
(SADVersion sadVersion) Assigns the requested version of the SAD.requesterID
(String requesterID) Assigns the requester ID (entityID of the SP requesting the SAD).requestParams
(RequestParams requestParams) Assigns theRequestParams
element.signRequestID
(String signRequestID) Assigns the value of theRequestID
attribute of the associatedSignRequest
.Methods inherited from class se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder
build, getDefaultElementName, object
-
Constructor Details
-
SADRequestBuilder
public SADRequestBuilder()
-
-
Method Details
-
builder
Utility method that creates a builder.- Returns:
- a builder
-
id
Assigns the ID attribute for theSADRequest
.- Parameters:
id
- the ID attribute- Returns:
- the builder
-
requesterID
Assigns the requester ID (entityID of the SP requesting the SAD).- Parameters:
requesterID
- the entityID of the requester- Returns:
- the builder
-
signRequestID
Assigns the value of theRequestID
attribute of the associatedSignRequest
.- Parameters:
signRequestID
- the signature request ID- Returns:
- the builder
-
docCount
Assigns the number of requested signatures in the associated sign request.- Parameters:
docCount
- the document count- Returns:
- the builder
-
requestedVersion
Assigns the requested version of the SAD.- Parameters:
sadVersion
- the SAD version- Returns:
- the builder
-
requestParams
Assigns theRequestParams
element.- Parameters:
requestParams
- the RequestParams- Returns:
- the builder
-
getObjectType
- Specified by:
getObjectType
in classAbstractSAMLObjectBuilder<SADRequest>
-