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
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for creating aRequestParamsusing the builder pattern. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SADRequestBuilderbuilder()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 theRequestParamselement.signRequestID(String signRequestID) Assigns the value of theRequestIDattribute 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 theRequestIDattribute 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 theRequestParamselement.- Parameters:
requestParams- the RequestParams- Returns:
- the builder
-
getObjectType
- Specified by:
getObjectTypein classAbstractSAMLObjectBuilder<SADRequest>
-