Interface SADRequest
- All Superinterfaces:
org.opensaml.saml.common.SAMLObject
,org.opensaml.core.xml.XMLObject
- All Known Implementing Classes:
SADRequestImpl
public interface SADRequest
extends org.opensaml.saml.common.SAMLObject
Definitions of the SADRequest type:
The SAD Request is provided in a <sap:SADRequest>
element. The element has the following elements and
attributes:
RequesterID
[Required]- Specifies the SAML entityID of the requesting entity. The value for this element should be the same identifier as
given in the
<saml2:Issuer>
element of the<saml2p:AuthnRequest>
that encapsulates the<sap:SADRequest>
extension. SignRequestID
[Required]- Specifies the value of the RequestID attribute of the associated SignRequest.
DocCount
[Required]- The number of requested signatures in the associated sign request.
RequestedVersion
[Optional Default="1.0"]- The requested version of the SAD.
RequestParams
[Optional]- Optional parameters provided as name-value pairs. This specification does not define any parameters. The use of parameters may be defined in profiles of this specification or may be negotiated by other means between a remote signing service and an Identity Provider.
ID
- Attribute holding an unique identifier for the
SADRequest
.
<sap:SADRequest>
element:
<xs:element name="SADRequest" type="sap:SADRequestType" />
<xs:complexType name="SADRequestType">
<xs:sequence>
<xs:element name="RequesterID" type="xs:string" />
<xs:element name="SignRequestID" type="xs:string" />
<xs:element name="DocCount" type="xs:int" />
<xs:element name="RequestedVersion" type="xs:string" default="1.0" />
<xs:element minOccurs="0" name="RequestParams">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="Parameter" type="sap:ParamType" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="ID" type="xs:ID" use="required" />
</xs:complexType>
- Author:
- Martin Lindström (martin@idsec.se)
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Name of the element.static final QName
Default element name.static final String
Name of the DocCount element.static final String
ID attribute name.static final String
Name of the RequestedVersion element.static final String
Name of the RequesterID element.static final String
Name of the SignRequestID element.static final String
Local name of the typestatic final QName
QName of the XSI type. -
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 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
Assigns the ID of thisSADRequest
.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
setRequestParams
(RequestParams requestParams) Assigns theRequestParams
element.void
setSignRequestID
(String signRequestID) Assigns the value of theRequestID
attribute of the associatedSignRequest
.Methods inherited from interface org.opensaml.core.xml.XMLObject
detach, ensureDOM, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getOrderedChildren, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
-
Field Details
-
DEFAULT_ELEMENT_LOCAL_NAME
Name of the element.- See Also:
-
DEFAULT_ELEMENT_NAME
Default element name. -
TYPE_LOCAL_NAME
Local name of the type- See Also:
-
TYPE_NAME
QName of the XSI type. -
REQUESTER_ID_LOCAL_NAME
Name of the RequesterID element.- See Also:
-
SIGN_REQUEST_ID_LOCAL_NAME
Name of the SignRequestID element.- See Also:
-
DOC_COUNT_LOCAL_NAME
Name of the DocCount element.- See Also:
-
REQUESTED_VERSION_LOCAL_NAME
Name of the RequestedVersion element.- See Also:
-
ID_ATTRIB_NAME
ID attribute name.- See Also:
-
-
Method Details
-
getID
String getID()Returns the ID attribute of thisSADRequest
.- Returns:
- the ID of this SAD request
-
setID
Assigns the ID of thisSADRequest
.- Parameters:
id
- the ID of this SAD request
-
getRequesterID
String getRequesterID()Returns the requester ID (entityID of the SP requesting the SAD).- Returns:
- the entityID of the requester
-
setRequesterID
Assigns the requester ID (entityID of the SP requesting the SAD).- Parameters:
requesterID
- the entityID of the requester
-
getSignRequestID
String getSignRequestID()Returns the value of theRequestID
attribute of the associatedSignRequest
.- Returns:
- the signature request ID
-
setSignRequestID
Assigns the value of theRequestID
attribute of the associatedSignRequest
.- Parameters:
signRequestID
- the signature request ID
-
getDocCount
Integer getDocCount()Returns the number of requested signatures in the associated sign request.- Returns:
- the document count
-
setDocCount
Assigns the number of requested signatures in the associated sign request.- Parameters:
docCount
- the document count
-
getRequestedVersion
SADVersion getRequestedVersion()Returns the requested version of the SAD.- Returns:
- the SAD version
-
setRequestedVersion
Assigns the requested version of the SAD.- Parameters:
sadVersion
- the SAD version
-
getRequestParams
RequestParams getRequestParams()Returns theRequestParams
element.- Returns:
- the RequestParams, or null
-
setRequestParams
Assigns theRequestParams
element.- Parameters:
requestParams
- the RequestParams
-