public abstract class AbstractResponse extends Object
AbstractResponse
class is an abstract base class for all
SAML Response in samlp
namespace. It corresponds to
ResponseAbstractType
in SAML protocol schema.Modifier | Constructor and Description |
---|---|
protected |
AbstractResponse()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getInResponseTo()
Gets the
InResponseTo of the Response. |
Date |
getIssueInstant()
Returns the
IssueInstant of the Response. |
int |
getMajorVersion()
Gets the
MajorVersion of the Response. |
int |
getMinorVersion()
Gets the
MinorVersion of the Response. |
String |
getRecipient()
Gets the recipient of the Response.
|
String |
getResponseID()
Gets the
ResponseID of the Response. |
Element |
getSignature()
Gets the signature of the Response.
|
boolean |
isSignatureValid()
Returns whether the signature on the object is valid or not.
|
boolean |
isSigned()
Return whether the object is signed or not.
|
boolean |
setInResponseTo(String inResponseTo)
Set the
InResponseTo of the Response. |
boolean |
setIssueInstant(Date issueInstant)
Set the
IssueInstant of the Response. |
void |
setMajorVersion(int majorVersion)
Sets the
MajorVersion of the Response. |
void |
setMinorVersion(int minorVersion)
Sets the
MinorVersion of the Response. |
boolean |
setRecipient(String recipient)
Set the Recipient attribute of the Response.
|
boolean |
setResponseID(String responseID)
Set the
ResponseID of the Response. |
boolean |
setSignature(Element elem)
Set the signature for the Response.
|
abstract void |
signXML()
An abstract method that signs the object.
|
public boolean isSigned()
public boolean isSignatureValid()
public abstract void signXML() throws SAMLException
SAMLException
- if could not sign the object.public String getResponseID()
ResponseID
of the Response.ResponseID
of the Response.public boolean setResponseID(String responseID)
ResponseID
of the Response.responseID
- A String that is the ResponseID
attribute
of the Response.public String getInResponseTo()
InResponseTo
of the Response.InResponseTo
of the Response.public boolean setInResponseTo(String inResponseTo)
InResponseTo
of the Response.inResponseTo
- The InResponseTo
attribute of the
Response.public int getMajorVersion()
MajorVersion
of the Response.MajorVersion
of the Response.public int getMinorVersion()
MinorVersion
of the Response.MinorVersion
of the SAML response.public void setMajorVersion(int majorVersion)
MajorVersion
of the Response.majorVersion
- the intended major version of SAML response.public void setMinorVersion(int minorVersion)
MinorVersion
of the Response.minorVersion
- the intended minor version of SAML response.public Element getSignature()
public boolean setSignature(Element elem)
elem
- ds:Signature
elementpublic Date getIssueInstant()
IssueInstant
of the Response.IssueInstant
of the Response.public boolean setIssueInstant(Date issueInstant)
IssueInstant
of the Response.issueInstant
- a Date object representing the time when the Response
is issued.public String getRecipient()
public boolean setRecipient(String recipient)
recipient
- A String representing the Recipient attribute of the
Response.Copyright © 2010-2018, ForgeRock All Rights Reserved.