Interface SADRequest
-
- All Superinterfaces:
SAMLObject,XMLObject
- All Known Implementing Classes:
SADRequestImpl
public interface SADRequest extends 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.lindstrom@litsec.se)
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_ELEMENT_LOCAL_NAMEName of the element.static QNameDEFAULT_ELEMENT_NAMEDefault element name.static StringDOC_COUNT_LOCAL_NAMEName of the DocCount element.static StringID_ATTRIB_NAMEID attribute name.static StringREQUESTED_VERSION_LOCAL_NAMEName of the RequestedVersion element.static StringREQUESTER_ID_LOCAL_NAMEName of the RequesterID element.static StringSIGN_REQUEST_ID_LOCAL_NAMEName of the SignRequestID element.static StringTYPE_LOCAL_NAMELocal name of the typestatic QNameTYPE_NAMEQName of the XSI type.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IntegergetDocCount()Returns the number of requested signatures in the associated sign request.StringgetID()Returns the ID attribute of thisSADRequest.SADVersiongetRequestedVersion()Returns the requested version of the SAD.StringgetRequesterID()Returns the requester ID (entityID of the SP requesting the SAD).RequestParamsgetRequestParams()Returns theRequestParamselement.StringgetSignRequestID()Returns the value of theRequestIDattribute of the associatedSignRequest.voidsetDocCount(Integer docCount)Assigns the number of requested signatures in the associated sign request.voidsetID(String id)Assigns the ID of thisSADRequest.voidsetRequestedVersion(SADVersion sadVersion)Assigns the requested version of the SAD.voidsetRequesterID(String requesterID)Assigns the requester ID (entityID of the SP requesting the SAD).voidsetRequestParams(RequestParams requestParams)Assigns theRequestParamselement.voidsetSignRequestID(String signRequestID)Assigns the value of theRequestIDattribute of the associatedSignRequest.-
Methods inherited from interface org.opensaml.core.xml.XMLObject
detach, 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 Detail
-
DEFAULT_ELEMENT_LOCAL_NAME
static final String DEFAULT_ELEMENT_LOCAL_NAME
Name of the element.- See Also:
- Constant Field Values
-
DEFAULT_ELEMENT_NAME
static final QName DEFAULT_ELEMENT_NAME
Default element name.
-
TYPE_LOCAL_NAME
static final String TYPE_LOCAL_NAME
Local name of the type- See Also:
- Constant Field Values
-
TYPE_NAME
static final QName TYPE_NAME
QName of the XSI type.
-
REQUESTER_ID_LOCAL_NAME
static final String REQUESTER_ID_LOCAL_NAME
Name of the RequesterID element.- See Also:
- Constant Field Values
-
SIGN_REQUEST_ID_LOCAL_NAME
static final String SIGN_REQUEST_ID_LOCAL_NAME
Name of the SignRequestID element.- See Also:
- Constant Field Values
-
DOC_COUNT_LOCAL_NAME
static final String DOC_COUNT_LOCAL_NAME
Name of the DocCount element.- See Also:
- Constant Field Values
-
REQUESTED_VERSION_LOCAL_NAME
static final String REQUESTED_VERSION_LOCAL_NAME
Name of the RequestedVersion element.- See Also:
- Constant Field Values
-
ID_ATTRIB_NAME
static final String ID_ATTRIB_NAME
ID attribute name.- See Also:
- Constant Field Values
-
-
Method Detail
-
getID
String getID()
Returns the ID attribute of thisSADRequest.- Returns:
- the ID of this SAD request
-
setID
void setID(String id)
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
void setRequesterID(String requesterID)
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 theRequestIDattribute of the associatedSignRequest.- Returns:
- the signature request ID
-
setSignRequestID
void setSignRequestID(String signRequestID)
Assigns the value of theRequestIDattribute 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
void setDocCount(Integer docCount)
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
void setRequestedVersion(SADVersion sadVersion)
Assigns the requested version of the SAD.- Parameters:
sadVersion- the SAD version
-
getRequestParams
RequestParams getRequestParams()
Returns theRequestParamselement.- Returns:
- the
RequestParams, ornull
-
setRequestParams
void setRequestParams(RequestParams requestParams)
Assigns theRequestParamselement.- Parameters:
requestParams- theRequestParams
-
-