Class SADRequestImpl
java.lang.Object
org.opensaml.core.xml.AbstractXMLObject
se.swedenconnect.opensaml.sweid.saml2.signservice.sap.impl.SADRequestImpl
- All Implemented Interfaces:
org.opensaml.core.xml.XMLObject
,org.opensaml.saml.common.SAMLObject
,SADRequest
Implementation class for the
SADRequest
interface.- Author:
- Martin Lindström (martin@idsec.se)
-
Field Summary
Fields inherited from interface se.swedenconnect.opensaml.sweid.saml2.signservice.sap.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
ModifierConstructorDescriptionprotected
SADRequestImpl
(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
.List
<org.opensaml.core.xml.XMLObject> Returns the requested version of the SAD.Returns the requester ID (entityID of the SP requesting the SAD).Returns theRequestParams
element.Returns the value of theRequestID
attribute of the associatedSignRequest
.void
setDocCount
(Integer docCount) Assigns the number of requested signatures in the associated sign request.void
setDocCount
(org.opensaml.core.xml.schema.XSInteger docCount) Assigns theDocCount
element.void
Assigns the ID of thisSADRequest
.void
setRequestedVersion
(org.opensaml.core.xml.schema.XSString sadVersion) Assigns the requested version as a string.void
setRequestedVersion
(SADVersion sadVersion) Assigns the requested version of the SAD.void
setRequesterID
(String requesterID) Assigns the requester ID (entityID of the SP requesting the SAD).void
setRequesterID
(org.opensaml.core.xml.schema.XSString requesterID) Assigns the requester ID as aXSString
string type.void
setRequestParams
(RequestParams requestParams) Assigns theRequestParams
element.void
setSignRequestID
(String signRequestID) Assigns the value of theRequestID
attribute of the associatedSignRequest
.void
setSignRequestID
(org.opensaml.core.xml.schema.XSString signRequestID) Assigns the sign request as aXSString
string type.Methods inherited from class org.opensaml.core.xml.AbstractXMLObject
detach, ensureDOM, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opensaml.core.xml.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
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:
getOrderedChildren
in interfaceorg.opensaml.core.xml.XMLObject
-
getID
Returns the ID attribute of thisSADRequest
.- Specified by:
getID
in interfaceSADRequest
- Returns:
- the ID of this SAD request
-
setID
Assigns the ID of thisSADRequest
.- Specified by:
setID
in interfaceSADRequest
- Parameters:
id
- the ID of this SAD request
-
getRequesterID
Returns the requester ID (entityID of the SP requesting the SAD).- Specified by:
getRequesterID
in interfaceSADRequest
- Returns:
- the entityID of the requester
-
setRequesterID
Assigns the requester ID (entityID of the SP requesting the SAD).- Specified by:
setRequesterID
in interfaceSADRequest
- Parameters:
requesterID
- the entityID of the requester
-
setRequesterID
public void setRequesterID(org.opensaml.core.xml.schema.XSString requesterID) Assigns the requester ID as aXSString
string type.- Parameters:
requesterID
- the requester ID
-
getSignRequestID
Returns the value of theRequestID
attribute of the associatedSignRequest
.- Specified by:
getSignRequestID
in interfaceSADRequest
- Returns:
- the signature request ID
-
setSignRequestID
Assigns the value of theRequestID
attribute of the associatedSignRequest
.- Specified by:
setSignRequestID
in interfaceSADRequest
- Parameters:
signRequestID
- the signature request ID
-
setSignRequestID
public void setSignRequestID(org.opensaml.core.xml.schema.XSString signRequestID) Assigns the sign request as aXSString
string type.- Parameters:
signRequestID
- the sign request id
-
getDocCount
Returns the number of requested signatures in the associated sign request.- Specified by:
getDocCount
in interfaceSADRequest
- Returns:
- the document count
-
setDocCount
Assigns the number of requested signatures in the associated sign request.- Specified by:
setDocCount
in interfaceSADRequest
- Parameters:
docCount
- the document count
-
setDocCount
public void setDocCount(org.opensaml.core.xml.schema.XSInteger docCount) Assigns theDocCount
element.- Parameters:
docCount
- the document count
-
getRequestedVersion
Returns the requested version of the SAD.- Specified by:
getRequestedVersion
in interfaceSADRequest
- Returns:
- the SAD version
-
setRequestedVersion
Assigns the requested version of the SAD.- Specified by:
setRequestedVersion
in interfaceSADRequest
- Parameters:
sadVersion
- the SAD version
-
setRequestedVersion
public void setRequestedVersion(org.opensaml.core.xml.schema.XSString sadVersion) Assigns the requested version as a string.- Parameters:
sadVersion
- the requested SAD version
-
getRequestParams
Returns theRequestParams
element.- Specified by:
getRequestParams
in interfaceSADRequest
- Returns:
- the RequestParams, or null
-
setRequestParams
Assigns theRequestParams
element.- Specified by:
setRequestParams
in interfaceSADRequest
- Parameters:
requestParams
- the RequestParams
-