|
||||||||||
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.FSNameRegistrationRequest
This class FSNameRegistrationRequest
is used to construct
and/or parse Name Identifier Registration request.
Constructor Summary | |
FSNameRegistrationRequest()
Default constructor |
|
FSNameRegistrationRequest(org.w3c.dom.Element root)
Constructor |
|
FSNameRegistrationRequest(java.lang.String requestId,
java.util.List respondWiths,
java.lang.String providerId,
SPProvidedNameIdentifier spProvidedNameIdentifier,
IDPProvidedNameIdentifier idpProvidedNameIdentifier,
OldProvidedNameIdentifier oldProvidedNameIdentifier,
java.lang.String relayState)
Constructor |
Method Summary | |
java.lang.String |
getID()
Returns ID of this request. |
IDPProvidedNameIdentifier |
getIDPProvidedNameIdentifier()
Gets name identifier provided by IDP |
int |
getMinorVersion()
Gets minor version |
OldProvidedNameIdentifier |
getOldProvidedNameIdentifier()
Gets old name identifier |
java.lang.String |
getProviderId()
Gets provider ID |
java.lang.String |
getRelayState()
Gets RelayState parameter |
java.lang.String |
getSignatureString()
Get the Signature Element as string |
java.lang.String |
getSignedXMLString()
Get Signed XML String |
SPProvidedNameIdentifier |
getSPProvidedNameIdentifier()
Gets SP provided name identifier |
static FSNameRegistrationRequest |
parseURLEncodedRequest(javax.servlet.http.HttpServletRequest request)
Gets the FSNameRegistrationRequest from the query parameters. |
static FSNameRegistrationRequest |
parseXML(java.lang.String xml)
Parses the XML and creates an FSNameRegistrationRequest object |
void |
setID(java.lang.String id)
Set ID of this request. |
void |
setIDPProvidedNameIdentifier(IDPProvidedNameIdentifier nameIdentifier)
Sets IDP provided name identifier |
void |
setMinorVersion(int version)
Sets minor version |
void |
setOldProvidedNameIdentifier(OldProvidedNameIdentifier nameIdentifier)
Sets old name identifier |
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 |
setSPProvidedNameIdentifier(SPProvidedNameIdentifier nameIdentifier)
Sets SP provided name identifier |
void |
signXML()
Signs the FSNameRegistrationRequest object. |
void |
signXML(java.lang.String certAlias)
Signs the FSNameRegistrationRequest object. |
java.lang.String |
toBASE64EncodedString()
Gets base 64 encoded string representation of the object |
java.lang.String |
toURLEncodedQueryString()
Gets the URL encoded string format of the request. |
java.lang.String |
toXMLString()
Creates a String representation of the FSNameRegistrationRequest object |
java.lang.String |
toXMLString(boolean includeNS,
boolean declareNS)
Creates a String representation of the FSNameRegistrationRequest object |
java.lang.String |
toXMLString(boolean includeNS,
boolean declareNS,
boolean includeHeader)
Creates a String representation of the FSNameRegistrationRequest 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 FSNameRegistrationRequest()
public FSNameRegistrationRequest(java.lang.String requestId, java.util.List respondWiths, java.lang.String providerId, SPProvidedNameIdentifier spProvidedNameIdentifier, IDPProvidedNameIdentifier idpProvidedNameIdentifier, OldProvidedNameIdentifier oldProvidedNameIdentifier, java.lang.String relayState) throws FSMsgException
requestId
- RequestID, if null, the constructor will create one.respondWiths
- List of respond withsproviderId
- provider id of the requesting providerspProvidedNameIdentifier
- name identifier provided by SPidpProvidedNameIdentifier
- name identifier provided by IDPoldProvidedNameIdentifier
- old name identifier to be replacedrelayState
- Relay State i.e. original URL to be redirected after SSO
FSMsgException
- if unable to construct the object.public FSNameRegistrationRequest(org.w3c.dom.Element root) throws FSMsgException
root
- DOM Element representing the
FSNameRegistrationRequest
object
FSMsgException
- if unable to construct the objectMethod Detail |
public java.lang.String getID()
public void setID(java.lang.String id)
id
- ID of this request.public java.lang.String getRelayState()
RelayState
parameter
RelayState
parameterpublic void setRelayState(java.lang.String relayState)
RelayState
parameter
relayState
- RelayState
parameter to be setpublic java.lang.String getSignedXMLString()
FSNameRegistrationRequest
is not signed.public java.lang.String getSignatureString()
FSNameRegistrationRequest
is not signed.public int getMinorVersion()
getMinorVersion
in class AbstractRequest
public void setMinorVersion(int version)
setMinorVersion
in class AbstractRequest
version
- minor version to be setpublic static FSNameRegistrationRequest parseXML(java.lang.String xml) throws FSMsgException
FSNameRegistrationRequest
object
xml
- XML String
FSNameRegistrationRequest
object
FSMsgException
- if unable to construct the objectpublic java.lang.String toXMLString() throws FSMsgException
FSNameRegistrationRequest
object
FSMsgException
- if unable to get the XML string.public java.lang.String toXMLString(boolean includeNS, boolean declareNS) throws FSMsgException
FSNameRegistrationRequest
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.
FSMsgException
- if unable to get the XML string.public java.lang.String toXMLString(boolean includeNS, boolean declareNS, boolean includeHeader) throws FSMsgException
FSNameRegistrationRequest
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 string.public IDPProvidedNameIdentifier getIDPProvidedNameIdentifier()
public OldProvidedNameIdentifier getOldProvidedNameIdentifier()
public java.lang.String getProviderId()
public void setIDPProvidedNameIdentifier(IDPProvidedNameIdentifier nameIdentifier)
nameIdentifier
- IDP provided name identifier to be set.public void setOldProvidedNameIdentifier(OldProvidedNameIdentifier nameIdentifier)
nameIdentifier
- old name identifier to be set.public void setSPProvidedNameIdentifier(SPProvidedNameIdentifier nameIdentifier)
nameIdentifier
- SP provided name identifier to be set.public void setProviderId(java.lang.String providerId)
providerId
- provider ID to be setpublic SPProvidedNameIdentifier getSPProvidedNameIdentifier()
public java.lang.String toBASE64EncodedString() throws FSMsgException
FSMsgException
- if unable to get the stringpublic void signXML(java.lang.String certAlias) throws SAMLException
FSNameRegistrationRequest
object.
certAlias
- certification Alias used to sign the
FSNameRegistrationRequest
object
SAMLException
- if it could not sign the
FSNameRegistrationRequest
objectpublic void signXML() throws SAMLException
FSNameRegistrationRequest
object.
signXML
in class AbstractRequest
SAMLException
- if it could not sign the
FSNameRegistrationRequest
objectpublic boolean setSignature(org.w3c.dom.Element elem)
setSignature
in class AbstractRequest
elem
- Signature element to be set
public java.lang.String toURLEncodedQueryString() throws FSMsgException
FSMsgException
- if unable to convert the request.public static FSNameRegistrationRequest parseURLEncodedRequest(javax.servlet.http.HttpServletRequest request) throws FSMsgException, SAMLException
FSNameRegistrationRequest
from the query parameters.
request
- HttpServletRequest
to retrieve query parameters
FSNameRegistrationRequest
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 |