|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.identity.saml.protocol.AbstractResponse com.sun.identity.saml.protocol.Response com.sun.identity.federation.message.FSResponse
public class FSResponse
This class contains methods for creating a Liberty Response
.
Field Summary | |
---|---|
protected String |
id
|
Fields inherited from class com.sun.identity.saml.protocol.Response |
---|
assertions, issuer, signatureString, status, xmlString |
Fields inherited from class com.sun.identity.saml.protocol.AbstractResponse |
---|
inResponseTo, issueInstant, majorVersion, minorVersion, recipient, responseID, signature, signed, valid, validationDone |
Constructor Summary | |
---|---|
FSResponse(Element root)
Constructor creates FSResponse object form
a Document Element. |
|
FSResponse(String responseID,
String inResponseTo,
Status status,
List contents)
Constructor creates FSResponse object. |
Method Summary | |
---|---|
String |
getID()
Returns the value of id attribute. |
int |
getMinorVersion()
Returns the MinorVersion . |
String |
getSignatureString()
Returns the signed XML string. |
static FSResponse |
parseBASE64EncodedString(String encodedRes)
Returns FSResponse object. |
static FSResponse |
parseResponseXML(String xml)
|
void |
setID(String id)
Sets the value of id attribute. |
void |
setMinorVersion(int version)
Sets the MinorVersion . |
void |
signXML()
Unsupported operation. |
void |
signXML(String certAlias)
Signs the Response. |
String |
toBASE64EncodedString()
Returns a Base64 Encoded String. |
String |
toXMLString()
Returns a String representation of the Logout Response. |
String |
toXMLString(boolean includeNS,
boolean declareNS)
Returns a String representation of the Logout Response. |
String |
toXMLString(boolean includeNS,
boolean declareNS,
boolean includeHeader)
|
Methods inherited from class com.sun.identity.saml.protocol.Response |
---|
addAssertion, getAssertion, getStatus, isSignatureValid, parseXML, parseXML, setSignature, setStatus, toString, toString, toString |
Methods inherited from class com.sun.identity.saml.protocol.AbstractResponse |
---|
getInResponseTo, getIssueInstant, getMajorVersion, getRecipient, getResponseID, getSignature, isSigned, setInResponseTo, setIssueInstant, setMajorVersion, setRecipient, setResponseID |
Field Detail |
---|
protected String id
Constructor Detail |
---|
public FSResponse(String responseID, String inResponseTo, Status status, List contents) throws SAMLException, FSMsgException
FSResponse
object.
responseID
- value of ResponseId
attribute.inResponseTo
- value of inResponseTo
attribute.status
- the Status
object.contents
- list containing response elements.
SAMLException
- it there is an error creating this object.
FSMsgException
- it there is an error creating this object.public FSResponse(Element root) throws SAMLException, FSMsgException
FSResponse
object form
a Document Element.
root
- the Document Element object.
SAMLException
- if there is an error creating this object.
FSMsgException
- if there is an error creating this object.Method Detail |
---|
public String getID()
id
attribute.
id
attribute.FSResponse.setID(String)
public void setID(String id)
id
attribute.
id
- the value of id
attribute.FSResponse.getID()
public String getSignatureString()
XML
string.
XML
string.public int getMinorVersion()
MinorVersion
.
getMinorVersion
in class AbstractResponse
MinorVersion
.FSResponse.setMinorVersion(int)
public void setMinorVersion(int version)
MinorVersion
.
setMinorVersion
in class AbstractResponse
version
- the MinorVersion
.FSResponse.getMinorVersion()
public static FSResponse parseResponseXML(String xml) throws SAMLException, FSMsgException
SAMLException
FSMsgException
public String toXMLString() throws FSMsgException
FSMsgException
- if there is an error converting
this object to a string.public String toXMLString(boolean includeNS, boolean declareNS) throws FSMsgException
includeNS
- : Determines whether or not the namespace qualifier
is prepended to the Element when converteddeclareNS
- : Determines whether or not the namespace is declared
within the Element.
FSMsgException
- if there is an error converting
this object ot a string.public String toXMLString(boolean includeNS, boolean declareNS, boolean includeHeader) throws FSMsgException
FSMsgException
public static FSResponse parseBASE64EncodedString(String encodedRes) throws FSMsgException, SAMLException
FSResponse
object. The object
is created by parsing an Base64 encoded response string.
encodedRes
- the encoded response string
FSMsgException
- if there is an error creating
FSResponse
object.
FSMsgException
- if there is an error creating
FSResponse
object.
SAMLException
public String toBASE64EncodedString() throws FSMsgException
FSMsgException
- if there is an error encoding the string.public void signXML(String certAlias) throws SAMLException
certAlias
- the Certificate Alias.
XMLSignatureException
- if FSAuthnRequest
cannot be signed.
SAMLException
public void signXML() throws SAMLException
signXML
in class Response
SAMLException
- if could not sign the Response.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |