|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.identity.saml.protocol.AbstractResponse
public abstract class AbstractResponse
This AbstractResponse class is an abstract base class for all
SAML Response in samlp namespace. It corresponds to
ResponseAbstractType in SAML protocol schema.
| Field Summary | |
|---|---|
protected String |
inResponseTo
|
protected Date |
issueInstant
|
protected int |
majorVersion
|
protected int |
minorVersion
|
protected String |
recipient
|
protected String |
responseID
|
protected Element |
signature
|
protected boolean |
signed
|
protected boolean |
valid
|
protected boolean |
validationDone
|
| Constructor Summary | |
|---|---|
protected |
AbstractResponse()
Default constructor. |
| Method Summary | |
|---|---|
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. |
| Field Detail |
|---|
protected String responseID
protected String inResponseTo
protected int majorVersion
protected int minorVersion
protected Element signature
protected Date issueInstant
protected String recipient
protected boolean signed
protected boolean valid
protected boolean validationDone
| Constructor Detail |
|---|
protected AbstractResponse()
| Method Detail |
|---|
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 element
public 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||