public abstract class AbstractRequest extends Object
AbstractRequest
class is an abstract base class for all
SAML Request in samlp
namespace. It corresponds to
RequestAbstractType
in SAML protocol schema.Modifier | Constructor and Description |
---|---|
protected |
AbstractRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
addRespondWith(String respondWith)
Adds a
RespondWith to the Request. |
Date |
getIssueInstant()
Returns the
IssueInstant of the Request. |
int |
getMajorVersion()
Returns the
MajorVersion of the Request. |
int |
getMinorVersion()
Returns the
MinorVersion of the Request. |
String |
getRequestID()
Gets the
RequestID of the Request. |
List |
getRespondWith()
Gets 0 or more of
RespondWith in the Request. |
Element |
getSignature()
Gets 0 or 1 of Signature in the Request.
|
boolean |
isSignatureValid()
Return whether the signature on the object is valid or not.
|
boolean |
isSigned()
Return whether the object is signed or not.
|
boolean |
setIssueInstant(Date issueInstant)
Set the
IssueInstant of the Request. |
void |
setMajorVersion(int majorVersion)
Sets the
MajorVersion of the Request. |
void |
setMinorVersion(int minorVersion)
Sets the
MinorVersion of the Request. |
boolean |
setRequestID(String requestID)
Set the
RequestID of the Request. |
boolean |
setSignature(Element elem)
Set the signature for the Request
|
abstract void |
signXML()
An abstract method to sign the object.
|
public boolean isSigned()
public boolean isSignatureValid()
public abstract void signXML() throws SAMLException
SAMLException
- If could not sign the object.public List getRespondWith()
RespondWith
in the Request.public boolean addRespondWith(String respondWith)
RespondWith
to the Request.respondWith
- A String that needs to be added to the Request.public Element getSignature()
public boolean setSignature(Element elem)
elem
- ds:Signature
elementpublic String getRequestID()
RequestID
of the Request.RequestID
of the Request.public boolean setRequestID(String requestID)
RequestID
of the Request.requestID
- A String that is the RequestID
attribute of
the Request.public int getMajorVersion()
MajorVersion
of the Request.MajorVersion
of the Request.public int getMinorVersion()
MinorVersion
of the Request.MinorVersion
of the request.public void setMajorVersion(int majorVersion)
MajorVersion
of the Request.majorVersion
- the intended major version for SAML Requestpublic void setMinorVersion(int minorVersion)
MinorVersion
of the Request.minorVersion
- the intended minor version for SAML Requestpublic Date getIssueInstant()
IssueInstant
of the Request.IssueInstant
of the Request.public boolean setIssueInstant(Date issueInstant)
IssueInstant
of the Request.issueInstant
- a Date object representing the time when the Request
is issued.Copyright © 2010-2018, ForgeRock All Rights Reserved.