@Deprecated public class FSResponse extends Response
Response
.Constructor and Description |
---|
FSResponse(Element root)
Deprecated.
Constructor creates
FSResponse object form
a Document Element. |
FSResponse(String responseID,
String inResponseTo,
Status status,
List contents)
Deprecated.
Constructor creates
FSResponse object. |
Modifier and Type | Method and Description |
---|---|
String |
getID()
Deprecated.
Returns the value of
id attribute. |
int |
getMinorVersion()
Deprecated.
Returns the
MinorVersion . |
String |
getSignatureString()
Deprecated.
Returns the signed
XML string. |
static FSResponse |
parseBASE64EncodedString(String encodedRes)
Deprecated.
Returns
FSResponse object. |
static FSResponse |
parseResponseXML(String xml)
Deprecated.
|
void |
setID(String id)
Deprecated.
Sets the value of
id attribute. |
void |
setMinorVersion(int version)
Deprecated.
Sets the
MinorVersion . |
void |
signXML()
Deprecated.
Unsupported operation.
|
void |
signXML(String certAlias)
Deprecated.
Signs the Response.
|
String |
toBASE64EncodedString()
Deprecated.
Returns a Base64 Encoded String.
|
String |
toXMLString()
Deprecated.
Returns a String representation of the Logout Response.
|
String |
toXMLString(boolean includeNS,
boolean declareNS)
Deprecated.
Returns a String representation of the Logout Response.
|
String |
toXMLString(boolean includeNS,
boolean declareNS,
boolean includeHeader)
Deprecated.
|
addAssertion, getAssertion, getStatus, isSignatureValid, parseXML, parseXML, setSignature, setStatus, toString, toString, toString
getInResponseTo, getIssueInstant, getMajorVersion, getRecipient, getResponseID, getSignature, isSigned, setInResponseTo, setIssueInstant, setMajorVersion, setRecipient, setResponseID
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.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 stringFSMsgException
- 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.SAMLException
- if FSAuthnRequest
cannot be signed.public void signXML() throws SAMLException
signXML
in class Response
SAMLException
- if could not sign the Response.Copyright © 2010-2018, ForgeRock All Rights Reserved.