Class FSNameRegistrationRequest
- java.lang.Object
-
- com.sun.identity.saml.protocol.AbstractRequest
-
- com.sun.identity.federation.message.FSNameRegistrationRequest
-
@Deprecated public class FSNameRegistrationRequest extends AbstractRequest
Deprecated.since 12.0.0This class contains methods to createNameRegistrationRequestobject.
-
-
Field Summary
Fields Modifier and Type Field Description protected StringidDeprecated.protected intminorVersionDeprecated.protected StringsignatureStringDeprecated.protected StringxmlStringDeprecated.-
Fields inherited from class com.sun.identity.saml.protocol.AbstractRequest
issueInstant, majorVersion, requestID, respondWiths, signature, signed, valid
-
-
Constructor Summary
Constructors Constructor Description FSNameRegistrationRequest()Deprecated.Default Constructor.FSNameRegistrationRequest(String requestId, List respondWiths, String providerId, SPProvidedNameIdentifier spProvidedNameIdentifier, IDPProvidedNameIdentifier idpProvidedNameIdentifier, OldProvidedNameIdentifier oldProvidedNameIdentifier, String relayState)Deprecated.Constructor creates theFSNameRegistrationRequestobject.FSNameRegistrationRequest(Element root)Deprecated.Constructor createsFSNameRegistrationRequest> object from 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.IDPProvidedNameIdentifiergetIDPProvidedNameIdentifier()Deprecated.Returns the Identity Provider'sNameIdentifier.intgetMinorVersion()Deprecated.Returns theMinorVersion.OldProvidedNameIdentifiergetOldProvidedNameIdentifier()Deprecated.Returns the originalNameIdentifier.StringgetProviderId()Deprecated.Returns the value ofProviderIDattribute.StringgetRelayState()Deprecated.Returns the value ofRelayStateattribute.StringgetSignatureString()Deprecated.Returns the signedXMLstring.SPProvidedNameIdentifiergetSPProvidedNameIdentifier()Deprecated.Returns theNameIdentifierprovided by the Service Provider.static FSNameRegistrationRequestparseURLEncodedRequest(jakarta.servlet.http.HttpServletRequest request)Deprecated.ReturnsFSNameRegistrationRequestobject.static FSNameRegistrationRequestparseXML(String xml)Deprecated.voidsetID(String id)Deprecated.Sets the value ofidattribute.voidsetIDPProvidedNameIdentifier(IDPProvidedNameIdentifier nameIdentifier)Deprecated.Sets the Identity Provider'sNameIdentifier.voidsetMinorVersion(int version)Deprecated.Sets theMinorVersion.voidsetOldProvidedNameIdentifier(OldProvidedNameIdentifier nameIdentifier)Deprecated.Sets the originalNameIdentifier.voidsetProviderId(String providerId)Deprecated.Sets the value ofProviderIDattribute.voidsetRelayState(String relayState)Deprecated.Set the value ofRelayStateattribute.booleansetSignature(Element elem)Deprecated.Sets the Signature.voidsetSPProvidedNameIdentifier(SPProvidedNameIdentifier nameIdentifier)Deprecated.Sets the Service Provider'sNameIdentifier.voidsignXML()Deprecated.An abstract method to sign the object.voidsignXML(String certAlias)Deprecated.Signs theFSNameRegistrationRequestobject.StringtoBASE64EncodedString()Deprecated.Returns a Base64 Encoded String.StringtoURLEncodedQueryString()Deprecated.Returns an URL 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.Returns a String representation of the Logout Response.-
Methods inherited from class com.sun.identity.saml.protocol.AbstractRequest
addRespondWith, getIssueInstant, getMajorVersion, getRequestID, getRespondWith, getSignature, isSignatureValid, isSigned, setIssueInstant, setMajorVersion, setRequestID
-
-
-
-
Constructor Detail
-
FSNameRegistrationRequest
public FSNameRegistrationRequest()
Deprecated.Default Constructor.
-
FSNameRegistrationRequest
public FSNameRegistrationRequest(String requestId, List respondWiths, String providerId, SPProvidedNameIdentifier spProvidedNameIdentifier, IDPProvidedNameIdentifier idpProvidedNameIdentifier, OldProvidedNameIdentifier oldProvidedNameIdentifier, String relayState) throws FSMsgException
Deprecated.Constructor creates theFSNameRegistrationRequestobject.- Parameters:
requestId- the value ofRequestIDattribute.respondWiths- the value ofRespondWithsattribute.providerId- the value ofProviderIDattribute.spProvidedNameIdentifier- the Service ProviderNameIdentifier.idpProvidedNameIdentifier- the Identity ProviderNameIdentifier.oldProvidedNameIdentifier- the Original ProviderNameIdentifier.relayState- the value ofRelayStateattribute.- Throws:
FSMsgException- if there is an error creating this object.
-
FSNameRegistrationRequest
public FSNameRegistrationRequest(Element root) throws FSMsgException
Deprecated.Constructor createsFSNameRegistrationRequest> object from a Document Element.- Parameters:
root- the Document Element.- Throws:
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()
-
getRelayState
public String getRelayState()
Deprecated.Returns the value ofRelayStateattribute.- Returns:
- the value of
RelayStateattribute. - See Also:
setRelayState(String)
-
setRelayState
public void setRelayState(String relayState)
Deprecated.Set the value ofRelayStateattribute.- Parameters:
relayState- the value ofRelayStateattribute.- See Also:
getRelayState()
-
getSignatureString
public String getSignatureString()
Deprecated.Returns the signedXMLstring.- Returns:
- the signed
XMLstring.
-
getMinorVersion
public int getMinorVersion()
Deprecated.Returns theMinorVersion.- Overrides:
getMinorVersionin classAbstractRequest- Returns:
- the
MinorVersion. - See Also:
setMinorVersion(int)
-
setMinorVersion
public void setMinorVersion(int version)
Deprecated.Sets theMinorVersion.- Overrides:
setMinorVersionin classAbstractRequest- Parameters:
version- theMinorVersion.- See Also:
getMinorVersion()
-
parseXML
public static FSNameRegistrationRequest parseXML(String xml) throws FSMsgException
Deprecated.- Throws:
FSMsgException
-
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 ot 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.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.includeHeader- Determines whether the output include the xml declaration header.- Returns:
- a string containing the valid XML for this element
- Throws:
FSMsgException- if there is an error converting this object ot a string.
-
getIDPProvidedNameIdentifier
public IDPProvidedNameIdentifier getIDPProvidedNameIdentifier()
Deprecated.Returns the Identity Provider'sNameIdentifier.- Returns:
- the Identity Provider's
NameIdentifier.
-
getOldProvidedNameIdentifier
public OldProvidedNameIdentifier getOldProvidedNameIdentifier()
Deprecated.Returns the originalNameIdentifier.- Returns:
- the original
NameIdentifier.
-
getProviderId
public String getProviderId()
Deprecated.Returns the value ofProviderIDattribute.- Returns:
- the value of
ProviderIDattribute.
-
setIDPProvidedNameIdentifier
public void setIDPProvidedNameIdentifier(IDPProvidedNameIdentifier nameIdentifier)
Deprecated.Sets the Identity Provider'sNameIdentifier.- Parameters:
nameIdentifier- the Identity Provider'sNameIdentifier.- See Also:
getIDPProvidedNameIdentifier()
-
setOldProvidedNameIdentifier
public void setOldProvidedNameIdentifier(OldProvidedNameIdentifier nameIdentifier)
Deprecated.Sets the originalNameIdentifier.- Parameters:
nameIdentifier- the original provider'sNameIdentifier.- See Also:
getOldProvidedNameIdentifier()
-
setSPProvidedNameIdentifier
public void setSPProvidedNameIdentifier(SPProvidedNameIdentifier nameIdentifier)
Deprecated.Sets the Service Provider'sNameIdentifier.- Parameters:
nameIdentifier- the Identity Provider'sNameIdentifier.- See Also:
getSPProvidedNameIdentifier()
-
setProviderId
public void setProviderId(String providerId)
Deprecated.Sets the value ofProviderIDattribute.- Parameters:
providerId- the value ofProviderIDattribute.
-
getSPProvidedNameIdentifier
public SPProvidedNameIdentifier getSPProvidedNameIdentifier()
Deprecated.Returns theNameIdentifierprovided by the Service Provider.- Returns:
- the
NameIdentifierprovided by the Service Provider. - See Also:
setSPProvidedNameIdentifier(SPProvidedNameIdentifier)
-
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()
Deprecated.Description copied from class:AbstractRequestAn abstract method to sign the object.- Specified by:
signXMLin classAbstractRequest
-
signXML
public void signXML(String certAlias) throws SAMLException
Deprecated.Signs theFSNameRegistrationRequestobject.- Parameters:
certAlias- the Certificate Alias.- Throws:
SAMLException- if this object cannot be signed.
-
setSignature
public boolean setSignature(Element elem)
Deprecated.Sets the Signature.- Overrides:
setSignaturein classAbstractRequest- Parameters:
elem- the Document Element.- Returns:
- true if success otherwise false.
-
toURLEncodedQueryString
public String toURLEncodedQueryString() throws FSMsgException
Deprecated.Returns an URL Encoded String.- Returns:
- a url encoded query string.
- Throws:
FSMsgException- if there is an error.
-
parseURLEncodedRequest
public static FSNameRegistrationRequest parseURLEncodedRequest(jakarta.servlet.http.HttpServletRequest request) throws FSMsgException, SAMLException
Deprecated.ReturnsFSNameRegistrationRequestobject. The object is creating by parsing theHttpServletRequestobject.- Parameters:
request- theHttpServletRequestobject.- Throws:
FSMsgException- if there is an error creating this object.SAMLException- if there is an error.
-
-