|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.identity.saml.protocol.AbstractRequest com.sun.identity.federation.message.FSFederationTerminationNotification
This class FSFederationTerminationNotification
is used to
create/parse a federation termination notification.
Constructor Summary | |
FSFederationTerminationNotification()
Default constructor. |
|
FSFederationTerminationNotification(org.w3c.dom.Element root)
Constructor. |
|
FSFederationTerminationNotification(java.lang.String requestId,
java.lang.String providerID,
NameIdentifier nameId)
Constructor |
Method Summary | |
java.lang.String |
getID()
Returns ID of this request. |
int |
getMinorVersion()
Gets minor version |
NameIdentifier |
getNameIdentifier()
Gets name identifier |
java.lang.String |
getProviderId()
Gets provider ID for this request. |
java.lang.String |
getRelayState()
Gets RelayState parameter |
static FSFederationTerminationNotification |
parseURLEncodedRequest(javax.servlet.http.HttpServletRequest request)
Creates the FSFederationTerminationNotification from
URL encoded string. |
static FSFederationTerminationNotification |
parseXML(java.lang.String xml)
Creates the FSFederationTerminationNotification object based
on XML string. |
void |
setID(java.lang.String id)
Set ID of this request. |
void |
setMinorVersion(int version)
Sets minor version |
void |
setNameIdentifier(NameIdentifier nameId)
Sets name identifier |
void |
setProviderId(java.lang.String providerID)
Sets provider ID for this request. |
void |
setRelayState(java.lang.String relayState)
Sets RelayState parameter |
boolean |
setSignature(org.w3c.dom.Element elem)
Sets the Signature . |
void |
signXML()
Signs the AuthnRequest . |
void |
signXML(java.lang.String certAlias)
Signs the object FSFederationTerminationNotification . |
java.lang.String |
toBASE64EncodedString()
Gets the BASE 64 encoded string representation of the object. |
java.lang.String |
toURLEncodedQueryString()
Gets the URL encoded query string representation of the object. |
java.lang.String |
toXMLString()
Creates a String representation of the object. |
java.lang.String |
toXMLString(boolean includeNS,
boolean declareNS)
Creates a String representation of the object. |
java.lang.String |
toXMLString(boolean includeNS,
boolean declareNS,
boolean includeHeader)
Creates a String representation of the object. |
Methods inherited from class com.sun.identity.saml.protocol.AbstractRequest |
addRespondWith, getIssueInstant, getMajorVersion, getRequestID, getRespondWith, getSignature, isSignatureValid, isSigned, setIssueInstant, setMajorVersion, setRequestID |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FSFederationTerminationNotification()
public FSFederationTerminationNotification(org.w3c.dom.Element root) throws FSMsgException
root
- FSFederationTerminationNotification as DOM Element
- Throws:
FSMsgException
- if unable to construct the object.
public FSFederationTerminationNotification(java.lang.String requestId, java.lang.String providerID, NameIdentifier nameId) throws FSMsgException
requestId
- request ID, if null, a random ID will be generated.providerID
- provider ID.nameId
- name identifier of the subject for the notification.
FSMsgException
- if unable to construct the object.Method Detail |
public java.lang.String getID()
public void setID(java.lang.String id)
id
- ID of this request.public void setRelayState(java.lang.String relayState)
RelayState
parameter
relayState
- RelayState
parameter to be setpublic java.lang.String getRelayState()
RelayState
parameter
RelayState
parameterpublic int getMinorVersion()
getMinorVersion
in class AbstractRequest
public void setMinorVersion(int version)
setMinorVersion
in class AbstractRequest
version
- minor version to be setpublic 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 error occurs.public java.lang.String toXMLString(boolean includeNS, boolean declareNS, boolean includeHeader) 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.includeHeader
- Determines whether the output include the xml
declaration header.
FSMsgException
- if error occurs.public java.lang.String toXMLString() throws FSMsgException
FSMsgException
- if error occurs.public static FSFederationTerminationNotification parseXML(java.lang.String xml) throws FSMsgException
FSFederationTerminationNotification
object based
on XML string.
xml
- XML string.
FSFederationTerminationNotification
object
FSMsgException
- if error occurspublic java.lang.String getProviderId()
public void setProviderId(java.lang.String providerID)
providerID
- provider ID to be set.public NameIdentifier getNameIdentifier()
public void setNameIdentifier(NameIdentifier nameId)
nameId
- name identifier to be set.public java.lang.String toURLEncodedQueryString() throws FSMsgException
FSMsgException
- if unable to get the URL encoded string.public java.lang.String toBASE64EncodedString() throws FSMsgException
FSMsgException
- if unable to get the BASE 64 encoded string.public static FSFederationTerminationNotification parseURLEncodedRequest(javax.servlet.http.HttpServletRequest request) throws FSMsgException, SAMLException
FSFederationTerminationNotification
from
URL encoded string.
request
- HttpServletRequest
to get the URL encoded
parameters.
FSFederationTerminationNotification
object.
SAMLException
- if unable to create the object.
FSMsgException
- if unable to create the object.public void signXML(java.lang.String certAlias) throws SAMLException
FSFederationTerminationNotification
.
certAlias
- alias of the certificate used to sign the
FSFederationTerminationNotification
SAMLException
- if it could not sign the
FSFederationTerminationNotification
public void signXML() throws SAMLException
AuthnRequest
.
signXML
in class AbstractRequest
SAMLException
- if it could not sign the
AuthnRequest
public boolean setSignature(org.w3c.dom.Element elem)
Signature
.
setSignature
in class AbstractRequest
elem
- Signature element.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |