Class FSResponse
- java.lang.Object
-
- com.sun.identity.saml.protocol.AbstractResponse
-
- com.sun.identity.saml.protocol.Response
-
- com.sun.identity.federation.message.FSResponse
-
@Deprecated public class FSResponse extends Response
Deprecated.since 12.0.0This class contains methods for creating a LibertyResponse.
-
-
Field Summary
Fields Modifier and Type Field Description protected StringidDeprecated.-
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
Constructors Constructor Description FSResponse(String responseID, String inResponseTo, Status status, List contents)Deprecated.Constructor createsFSResponseobject.FSResponse(Element root)Deprecated.Constructor createsFSResponseobject form a Document Element.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetID()Deprecated.Returns the value ofidattribute.intgetMinorVersion()Deprecated.Returns theMinorVersion.StringgetSignatureString()Deprecated.Returns the signedXMLstring.static FSResponseparseBASE64EncodedString(String encodedRes)Deprecated.ReturnsFSResponseobject.static FSResponseparseResponseXML(String xml)Deprecated.voidsetID(String id)Deprecated.Sets the value ofidattribute.voidsetMinorVersion(int version)Deprecated.Sets theMinorVersion.voidsignXML()Deprecated.Unsupported operation.voidsignXML(String certAlias)Deprecated.Signs the Response.StringtoBASE64EncodedString()Deprecated.Returns a Base64 Encoded String.StringtoXMLString()Deprecated.Returns a String representation of the Logout Response.StringtoXMLString(boolean includeNS, boolean declareNS)Deprecated.Returns a String representation of the Logout Response.StringtoXMLString(boolean includeNS, boolean declareNS, boolean includeHeader)Deprecated.-
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
-
id
protected String id
Deprecated.
-
-
Constructor Detail
-
FSResponse
public FSResponse(String responseID, String inResponseTo, Status status, List contents) throws SAMLException, FSMsgException
Deprecated.Constructor createsFSResponseobject.- Parameters:
responseID- value ofResponseIdattribute.inResponseTo- value ofinResponseToattribute.status- theStatusobject.contents- list containing response elements.- Throws:
SAMLException- it there is an error creating this object.FSMsgException- it there is an error creating this object.
-
FSResponse
public FSResponse(Element root) throws SAMLException, FSMsgException
Deprecated.Constructor createsFSResponseobject form a Document Element.- Parameters:
root- the Document Element object.- Throws:
SAMLException- if there is an error creating this object.FSMsgException- if there is an error creating this object.
-
-
Method Detail
-
getID
public String getID()
Deprecated.Returns the value ofidattribute.- Returns:
- the value of
idattribute. - See Also:
setID(String)
-
setID
public void setID(String id)
Deprecated.Sets the value ofidattribute.- Parameters:
id- the value ofidattribute.- See Also:
getID()
-
getSignatureString
public String getSignatureString()
Deprecated.Returns the signedXMLstring.- Returns:
- the signed
XMLstring.
-
getMinorVersion
public int getMinorVersion()
Deprecated.Returns theMinorVersion.- Overrides:
getMinorVersionin classAbstractResponse- Returns:
- the
MinorVersion. - See Also:
setMinorVersion(int)
-
setMinorVersion
public void setMinorVersion(int version)
Deprecated.Sets theMinorVersion.- Overrides:
setMinorVersionin classAbstractResponse- Parameters:
version- theMinorVersion.- See Also:
getMinorVersion()
-
parseResponseXML
public static FSResponse parseResponseXML(String xml) throws SAMLException, FSMsgException
Deprecated.- Throws:
SAMLExceptionFSMsgException
-
toXMLString
public String toXMLString() throws FSMsgException
Deprecated.Returns a String representation of the Logout Response.- Returns:
- a string containing the valid XML for this element
- Throws:
FSMsgException- if there is an error converting this object to a string.
-
toXMLString
public String toXMLString(boolean includeNS, boolean declareNS) throws FSMsgException
Deprecated.Returns a String representation of the Logout Response.- Parameters:
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.- Returns:
- a string containing the valid XML for this element
- Throws:
FSMsgException- if there is an error converting this object ot a string.
-
toXMLString
public String toXMLString(boolean includeNS, boolean declareNS, boolean includeHeader) throws FSMsgException
Deprecated.- Throws:
FSMsgException
-
parseBASE64EncodedString
public static FSResponse parseBASE64EncodedString(String encodedRes) throws FSMsgException, SAMLException
Deprecated.ReturnsFSResponseobject. The object is created by parsing an Base64 encoded response string.- Parameters:
encodedRes- the encoded response string- Throws:
FSMsgException- if there is an error creatingFSResponseobject.FSMsgException- if there is an error creatingFSResponseobject.SAMLException
-
toBASE64EncodedString
public String toBASE64EncodedString() throws FSMsgException
Deprecated.Returns a Base64 Encoded String.- Returns:
- a Base64 Encoded String.
- Throws:
FSMsgException- if there is an error encoding the string.
-
signXML
public void signXML(String certAlias) throws SAMLException
Deprecated.Signs the Response.- Parameters:
certAlias- the Certificate Alias.- Throws:
XMLSignatureException- ifFSAuthnRequestcannot be signed.SAMLException
-
signXML
public void signXML() throws SAMLExceptionDeprecated.Unsupported operation.- Overrides:
signXMLin classResponse- Throws:
SAMLException- if could not sign the Response.
-
-