|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.identity.federation.message.FSAuthnResponseEnvelope
This class FSAuthnResponse
is used to create/parse an ID-FF
authentication response envelop.
Constructor Summary | |
FSAuthnResponseEnvelope()
Default constructor |
|
FSAuthnResponseEnvelope(org.w3c.dom.Element root)
Constructor. |
|
FSAuthnResponseEnvelope(FSAuthnResponse authnResponse)
Constructor |
Method Summary | |
java.lang.String |
getAssertionConsumerServiceURL()
Gets AssertionConsumerServiceURL parameter. |
FSAuthnResponse |
getAuthnResponse()
Gets the response object. |
int |
getMinorVersion()
Gets the minor version. |
java.util.List |
getOtherElements()
Gets Other element |
static FSAuthnResponseEnvelope |
parseBASE64EncodedString(java.lang.String encodedReq)
Creates FSAuthnResponseEnvelope from BASE 64 encoded
string. |
static FSAuthnResponseEnvelope |
parseXML(java.lang.String xml)
Creats the FSAuthnResponseEnvelope from XML string. |
void |
setAssertionConsumerServiceURL(java.lang.String assertionConsumerUrl)
Sets AssertionConsumerServiceURL parameter. |
void |
setAuthnResponse(FSAuthnResponse authnResponse)
Sets the response object. |
void |
setMinorVersion(int minorVersion)
Sets the minor version |
void |
setOtherElements(java.util.List otherElement)
Sets Other element |
java.lang.String |
toBASE64EncodedString()
Gets the BASE 64 encoded format of the request |
java.lang.String |
toXMLString()
Gets a String representation of the AuthnResponseEnvelop
element. |
java.lang.String |
toXMLString(boolean includeNS,
boolean declareNS)
Gets a String representation of the AuthnResponseEnvelop
element. |
java.lang.String |
toXMLString(boolean includeNS,
boolean declareNS,
boolean includeHeader)
Gets a String representation of the AuthnResponseEnvelope
element. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FSAuthnResponseEnvelope()
public FSAuthnResponseEnvelope(FSAuthnResponse authnResponse)
authnResponse
- FSAuthnResponse
objectpublic FSAuthnResponseEnvelope(org.w3c.dom.Element root) throws FSMsgException, SAMLException
root
- response envelope element.
FSMsgException
- if unable to parse the element.
SAMLException
- if unable to construct the object.Method Detail |
public int getMinorVersion()
public void setMinorVersion(int minorVersion)
minorVersion
- minor version to be set.public java.util.List getOtherElements()
public void setOtherElements(java.util.List otherElement)
otherElement
- List of Other Elements to be set.public FSAuthnResponse getAuthnResponse()
public void setAuthnResponse(FSAuthnResponse authnResponse)
authnResponse
- the response object to be set.public java.lang.String getAssertionConsumerServiceURL()
AssertionConsumerServiceURL
parameter.
public void setAssertionConsumerServiceURL(java.lang.String assertionConsumerUrl)
AssertionConsumerServiceURL
parameter.
assertionConsumerUrl
- assertion consumer service URL to be setpublic static FSAuthnResponseEnvelope parseXML(java.lang.String xml) throws FSMsgException
FSAuthnResponseEnvelope
from XML string.
xml
- XML string
FSAuthnResponseEnvelope
object.
FSMsgException
- if error occurs.public java.lang.String toXMLString() throws FSMsgException
AuthnResponseEnvelop
element.
AuthnResponseEnvelop
.
FSMsgException
- if error occurs.public java.lang.String toXMLString(boolean includeNS, boolean declareNS) throws FSMsgException
AuthnResponseEnvelop
element.
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.
AuthnResponseEnvelop
.
FSMsgException
- if error occurs.public java.lang.String toXMLString(boolean includeNS, boolean declareNS, boolean includeHeader) throws FSMsgException
AuthnResponseEnvelope
element.
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.includeHeader
- Determines whether the output include the xml
declaration header.
FSMsgException
- if error occurs.public java.lang.String toBASE64EncodedString() throws FSMsgException
FSMsgException
- if unable to get the BASE 64 encoded formatpublic static FSAuthnResponseEnvelope parseBASE64EncodedString(java.lang.String encodedReq) throws FSMsgException
FSAuthnResponseEnvelope
from BASE 64 encoded
string.
encodedReq
- BASE 64 encoded string representing the object.
FSAuthnResponseEnvelope
object
FSMsgException
- if unable to parse the encoded string.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |