Class SADRequestImpl
java.lang.Object
org.opensaml.core.xml.AbstractXMLObject
se.swedenconnect.opensaml.sweid.saml2.signservice.sap.impl.SADRequestImpl
- All Implemented Interfaces:
XMLObject, SAMLObject, SADRequest
Implementation class for the
SADRequest interface.- Author:
- Martin Lindström (martin@idsec.se)
-
Field Summary
Fields inherited from interface SADRequest
DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, DOC_COUNT_LOCAL_NAME, ID_ATTRIB_NAME, REQUESTED_VERSION_LOCAL_NAME, REQUESTER_ID_LOCAL_NAME, SIGN_REQUEST_ID_LOCAL_NAME, TYPE_LOCAL_NAME, TYPE_NAME -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSADRequestImpl(String namespaceURI, String elementLocalName, String namespacePrefix) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the number of requested signatures in the associated sign request.getID()Returns the ID attribute of thisSADRequest.Returns the requested version of the SAD.Returns the requester ID (entityID of the SP requesting the SAD).Returns theRequestParamselement.Returns the value of theRequestIDattribute of the associatedSignRequest.voidsetDocCount(Integer docCount) Assigns the number of requested signatures in the associated sign request.voidsetDocCount(XSInteger docCount) Assigns theDocCountelement.voidAssigns the ID of thisSADRequest.voidsetRequestedVersion(XSString sadVersion) Assigns the requested version as a string.voidsetRequestedVersion(SADVersion sadVersion) Assigns the requested version of the SAD.voidsetRequesterID(String requesterID) Assigns the requester ID (entityID of the SP requesting the SAD).voidsetRequesterID(XSString requesterID) Assigns the requester ID as aXSStringstring type.voidsetRequestParams(RequestParams requestParams) Assigns theRequestParamselement.voidsetSignRequestID(String signRequestID) Assigns the value of theRequestIDattribute of the associatedSignRequest.voidsetSignRequestID(XSString signRequestID) Assigns the sign request as aXSStringstring type.Methods inherited from class AbstractXMLObject
detach, ensureDOM, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaTypeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface XMLObject
detach, ensureDOM, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
-
Constructor Details
-
SADRequestImpl
protected SADRequestImpl(@Nullable String namespaceURI, @Nonnull String elementLocalName, @Nullable String namespacePrefix) Constructor.- Parameters:
namespaceURI- the namespace the element is inelementLocalName- the local name of the XML element this Object representsnamespacePrefix- the prefix for the given namespace
-
-
Method Details
-
getOrderedChildren
- Specified by:
getOrderedChildrenin interfaceXMLObject
-
getID
Returns the ID attribute of thisSADRequest.- Specified by:
getIDin interfaceSADRequest- Returns:
- the ID of this SAD request
-
setID
Assigns the ID of thisSADRequest.- Specified by:
setIDin interfaceSADRequest- Parameters:
id- the ID of this SAD request
-
getRequesterID
Returns the requester ID (entityID of the SP requesting the SAD).- Specified by:
getRequesterIDin interfaceSADRequest- Returns:
- the entityID of the requester
-
setRequesterID
Assigns the requester ID (entityID of the SP requesting the SAD).- Specified by:
setRequesterIDin interfaceSADRequest- Parameters:
requesterID- the entityID of the requester
-
setRequesterID
Assigns the requester ID as aXSStringstring type.- Parameters:
requesterID- the requester ID
-
getSignRequestID
Returns the value of theRequestIDattribute of the associatedSignRequest.- Specified by:
getSignRequestIDin interfaceSADRequest- Returns:
- the signature request ID
-
setSignRequestID
Assigns the value of theRequestIDattribute of the associatedSignRequest.- Specified by:
setSignRequestIDin interfaceSADRequest- Parameters:
signRequestID- the signature request ID
-
setSignRequestID
Assigns the sign request as aXSStringstring type.- Parameters:
signRequestID- the sign request id
-
getDocCount
Returns the number of requested signatures in the associated sign request.- Specified by:
getDocCountin interfaceSADRequest- Returns:
- the document count
-
setDocCount
Assigns the number of requested signatures in the associated sign request.- Specified by:
setDocCountin interfaceSADRequest- Parameters:
docCount- the document count
-
setDocCount
Assigns theDocCountelement.- Parameters:
docCount- the document count
-
getRequestedVersion
Returns the requested version of the SAD.- Specified by:
getRequestedVersionin interfaceSADRequest- Returns:
- the SAD version (1.0 if not set)
-
setRequestedVersion
Assigns the requested version of the SAD.- Specified by:
setRequestedVersionin interfaceSADRequest- Parameters:
sadVersion- the SAD version
-
setRequestedVersion
Assigns the requested version as a string.- Parameters:
sadVersion- the requested SAD version
-
getRequestParams
Returns theRequestParamselement.- Specified by:
getRequestParamsin interfaceSADRequest- Returns:
- the RequestParams, or null
-
setRequestParams
Assigns theRequestParamselement.- Specified by:
setRequestParamsin interfaceSADRequest- Parameters:
requestParams- the RequestParams
-