|
||||||||||
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.federation.message.FSNameRegistrationResponse
This class FSNameRegistrationRequest
is used to construct
and/or parse Name Identifier Registration response.
Constructor Summary | |
FSNameRegistrationResponse()
Default constructor |
|
FSNameRegistrationResponse(org.w3c.dom.Element root)
Constructor |
|
FSNameRegistrationResponse(java.lang.String responseID,
java.lang.String inResponseTo,
Status status,
java.lang.String providerId,
java.lang.String relayState)
This constructor shall only be used at the server side to construct a FSNameRegistrationResponse object. |
Method Summary | |
java.lang.String |
getID()
Gets id attribute. |
int |
getMinorVersion()
Gets minor version |
java.lang.String |
getProviderId()
Gets provider ID. |
java.lang.String |
getRelayState()
Gets Relay state |
java.lang.String |
getSignatureString()
Get the Signature Element as string |
java.lang.String |
getSignedXMLString()
Get Signed XML String |
Status |
getStatus()
Get status |
static FSNameRegistrationResponse |
parseBASE64EncodedString(java.lang.String encodedRes)
Creates the FSNameRegistrationResponse from
base 64 encoded string |
static FSNameRegistrationResponse |
parseURLEncodedRequest(javax.servlet.http.HttpServletRequest request)
Gets the FSNameRegistrationResponse from the query parameters. |
static FSNameRegistrationResponse |
parseXML(java.lang.String xml)
Creates FSNameRegistrationResponse from XML string |
void |
setID(java.lang.String id)
Sets id attribute. |
void |
setMinorVersion(int version)
Sets minor version |
void |
setProviderId(java.lang.String providerId)
Sets provider ID. |
void |
setRelayState(java.lang.String relayState)
Sets RelayState parameter |
boolean |
setSignature(org.w3c.dom.Element elem)
Sets the signature element |
void |
setStatus(Status status)
Sets status |
void |
signXML()
Signs the FSNameRegistrationResponse . |
void |
signXML(java.lang.String certAlias)
Signs the FSNameRegistrationResponse . |
java.lang.String |
toBASE64EncodedString()
Gets the base 64 encoded string representation of the object |
java.lang.String |
toURLEncodedQueryString()
Gets the URL encoded string format of the response |
java.lang.String |
toXMLString()
Gets a String representation of the FSNameRegistrationResponse object |
java.lang.String |
toXMLString(boolean includeNS,
boolean declareNS)
Gets a String representation of the |
java.lang.String |
toXMLString(boolean includeNS,
boolean declareNS,
boolean includeHeader)
Gets a String representation of the FSNameRegistrationResponse object |
Methods inherited from class com.sun.identity.saml.protocol.AbstractResponse |
getInResponseTo, getIssueInstant, getMajorVersion, getRecipient, getResponseID, getSignature, isSignatureValid, isSigned, setInResponseTo, setIssueInstant, setMajorVersion, setRecipient, setResponseID |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FSNameRegistrationResponse()
public FSNameRegistrationResponse(java.lang.String responseID, java.lang.String inResponseTo, Status status, java.lang.String providerId, java.lang.String relayState) throws FSMsgException
FSNameRegistrationResponse
object.
responseID
- If it's null, the constructor will create one.inResponseTo
- the FSNameRegistrationResponse
that this
response is corresponding. It could be null or empty string "".status
- The status of the response.providerId
- provider ID.relayState
- relay state.
FSMsgException
- if error occurs.public FSNameRegistrationResponse(org.w3c.dom.Element root) throws FSMsgException, SAMLException
root
- DOM Element representing the
FSNameRegistrationResponse
FSMsgException
- if error occurs
SAMLException
- if error occursMethod Detail |
public java.lang.String getRelayState()
public void setRelayState(java.lang.String relayState)
RelayState
parameter
relayState
- RelayState
parameter to be setpublic java.lang.String getID()
public void setID(java.lang.String id)
id
- id to be set.public java.lang.String getProviderId()
public void setProviderId(java.lang.String providerId)
providerId
- provider ID to be setpublic java.lang.String getSignedXMLString()
FSNameRegistrationResponse
is not signed.public java.lang.String getSignatureString()
FSNameRegistrationResponse
is not signed.public int getMinorVersion()
getMinorVersion
in class AbstractResponse
public void setMinorVersion(int version)
setMinorVersion
in class AbstractResponse
version
- minor version to be setpublic Status getStatus()
public void setStatus(Status status)
status
- status to be setpublic static FSNameRegistrationResponse parseXML(java.lang.String xml) throws FSMsgException
FSNameRegistrationResponse
from XML string
xml
- XML string representing the
FSNameRegistrationResponse
object
FSNameRegistrationResponse
object
FSMsgException
- if unable to construct the objectpublic java.lang.String toXMLString() throws FSMsgException
FSNameRegistrationResponse
object
FSMsgException
- if unable to get the XML stringpublic java.lang.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 unable to get the XML stringpublic java.lang.String toXMLString(boolean includeNS, boolean declareNS, boolean includeHeader) throws FSMsgException
FSNameRegistrationResponse
object
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 unable to get the XML stringpublic static FSNameRegistrationResponse parseBASE64EncodedString(java.lang.String encodedRes) throws FSMsgException, SAMLException
FSNameRegistrationResponse
from
base 64 encoded string
encodedRes
- base 64 encoded string representing
the FSNameRegistrationResponse
object.
FSNameRegistrationResponse
object.
FSMsgException
- if unable to create the object
SAMLException
- if unable to create the objectpublic java.lang.String toBASE64EncodedString() throws FSMsgException
FSMsgException
- if unable to get the stringpublic void signXML(java.lang.String certAlias) throws SAMLException
FSNameRegistrationResponse
.
certAlias
- certificate alias which will be used for signing.
SAMLException
- if could not sign the FSAuthnResponse
public void signXML() throws SAMLException
FSNameRegistrationResponse
.
signXML
in class AbstractResponse
SAMLException
- if could not sign the FSAuthnResponse
public boolean setSignature(org.w3c.dom.Element elem)
setSignature
in class AbstractResponse
elem
- DOM Signature element to be set
public java.lang.String toURLEncodedQueryString() throws FSMsgException
FSMsgException
- if unable to convert the responsepublic static FSNameRegistrationResponse parseURLEncodedRequest(javax.servlet.http.HttpServletRequest request) throws FSMsgException, SAMLException
FSNameRegistrationResponse
from the query parameters.
request
- HttpServletRequest
to retrieve query parameters
FSNameRegistrationResponse
object
SAMLException
- if unable to construct the object.
FSMsgException
- if unable to construct the object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |