Class FSAuthnRequestEnvelope
- java.lang.Object
-
- com.sun.identity.federation.message.FSAuthnRequestEnvelope
-
@Deprecated public class FSAuthnRequestEnvelope extends Object
Deprecated.since 12.0.0This class defines methods for setting and retrieving attributes and elements associated with a Liberty Authentication Request.
-
-
Constructor Summary
Constructors Constructor Description FSAuthnRequestEnvelope()Deprecated.Default Constructor.FSAuthnRequestEnvelope(FSAuthnRequest authnRequest, String providerID, String providerName, String assertionConsumerServiceURL, FSIDPList idpList, boolean isPassive)Deprecated.Constructs a newFSAuthnRequestEnvelopeobject.FSAuthnRequestEnvelope(Element root)Deprecated.Constructs a newFSAuthnRequestEnvelopeobject from a Document Element.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetAssertionConsumerServiceURL()Deprecated.Returns the value ofAssertionConsumerServiceURLattribute.FSAuthnRequestgetAuthnRequest()Deprecated.Returns theFSAuthnRequestobject.FSIDPListgetIDPList()Deprecated.Returns theFSIDPListobject.intgetMinorVersion()Deprecated.Returns the value ofMinorVersionproperty.ListgetOtherElements()Deprecated.Returns a list of elements.static FSAuthnRequestEnvelopeparseBASE64EncodedString(String encodedReq)Deprecated.ReturnsFSAuthnRequestEnvelopeobject.static FSAuthnRequestEnvelopeparseXML(String xml)Deprecated.Returns theFSAuthnRequestEnvelopeobject.voidsetAssertionConsumerServiceURL(String assertionConsumerURL)Deprecated.Sets the value ofAssertionConsumerServiceURLattribute.voidsetAuthnRequest(FSAuthnRequest authnRequest)Deprecated.Sets theFSAuthnRequestobject.voidsetIDPList(FSIDPList idpList)Deprecated.Sets theFSIDPListobject.voidsetMinorVersion(int minorVersion)Deprecated.Sets the value ofMinorVersionproperty.voidsetOtherElements(List otherElements)Deprecated.Sets a list of elements.StringtoBASE64EncodedString()Deprecated.Returns a Base64 Encoded Authentication Request String.StringtoXMLString()Deprecated.Returns the request as an XML Document String based on the Liberty Request schema.StringtoXMLString(boolean includeNS, boolean declareNS)Deprecated.Creates a String representation of the <lib:AuthnRequest> element.StringtoXMLString(boolean includeNS, boolean declareNS, boolean includeHeader)Deprecated.Creates a String representation of the <lib:AuthnRequest> element.
-
-
-
Constructor Detail
-
FSAuthnRequestEnvelope
public FSAuthnRequestEnvelope()
Deprecated.Default Constructor.
-
FSAuthnRequestEnvelope
public FSAuthnRequestEnvelope(FSAuthnRequest authnRequest, String providerID, String providerName, String assertionConsumerServiceURL, FSIDPList idpList, boolean isPassive)
Deprecated.Constructs a newFSAuthnRequestEnvelopeobject.- Parameters:
authnRequest- the authentication requestproviderID- the provider's identifierproviderName- name of the providerassertionConsumerServiceURL- absolute url of the assertion consumer serviceidpList- list of identity providersisPassive- true if identity provider must not interact with thePrincipal.
-
FSAuthnRequestEnvelope
public FSAuthnRequestEnvelope(Element root) throws FSMsgException
Deprecated.Constructs a newFSAuthnRequestEnvelopeobject from a Document Element.- Parameters:
root- the Document Element .- Throws:
FSMsgException- if there is an error creating this object.
-
-
Method Detail
-
getMinorVersion
public int getMinorVersion()
Deprecated.Returns the value ofMinorVersionproperty.- Returns:
- the value of
MinorVersionproperty.
-
setMinorVersion
public void setMinorVersion(int minorVersion)
Deprecated.Sets the value ofMinorVersionproperty.- Parameters:
minorVersion- the value ofMinorVersionproperty.- See Also:
setMinorVersion(int)
-
toXMLString
public String toXMLString() throws FSMsgException
Deprecated.Returns the request as an XML Document String based on the Liberty Request schema.- Returns:
- XML String representing the request.
- Throws:
FSMsgException
-
toXMLString
public String toXMLString(boolean includeNS, boolean declareNS) throws FSMsgException
Deprecated.Creates a String representation of the <lib:AuthnRequest> element.- 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:
- String containing the valid XML for this element.
- Throws:
FSMsgException- if there is an error.
-
toXMLString
public String toXMLString(boolean includeNS, boolean declareNS, boolean includeHeader) throws FSMsgException
Deprecated.Creates a String representation of the <lib:AuthnRequest> element.- 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
-
parseXML
public static FSAuthnRequestEnvelope parseXML(String xml) throws FSMsgException
Deprecated.Returns theFSAuthnRequestEnvelopeobject.- Parameters:
xml- the XML string to create this object from- Returns:
FSAuthnRequestEnvelopeobject.- Throws:
FSMsgException- if there is error creating the object.
-
getAssertionConsumerServiceURL
public String getAssertionConsumerServiceURL()
Deprecated.Returns the value ofAssertionConsumerServiceURLattribute.- Returns:
- the value of
AssertionConsumerServiceURLattribute. - See Also:
setAssertionConsumerServiceURL(String)
-
setAssertionConsumerServiceURL
public void setAssertionConsumerServiceURL(String assertionConsumerURL)
Deprecated.Sets the value ofAssertionConsumerServiceURLattribute.- Parameters:
assertionConsumerURL- the value ofAssertionConsumerServiceURLattribute.- See Also:
getAssertionConsumerServiceURL()
-
getAuthnRequest
public FSAuthnRequest getAuthnRequest()
Deprecated.Returns theFSAuthnRequestobject.- Returns:
- the
FSAuthnRequestobject. - See Also:
setAuthnRequest(FSAuthnRequest)
-
setAuthnRequest
public void setAuthnRequest(FSAuthnRequest authnRequest)
Deprecated.Sets theFSAuthnRequestobject.- Parameters:
authnRequest- theFSAuthnRequestobject.- See Also:
getAuthnRequest()
-
getIDPList
public FSIDPList getIDPList()
Deprecated.Returns theFSIDPListobject. return theFSIDPListobject.- See Also:
setIDPList(FSIDPList)
-
setIDPList
public void setIDPList(FSIDPList idpList)
Deprecated.Sets theFSIDPListobject.- Parameters:
idpList- theFSIDPListobject.- See Also:
getIDPList()
-
getOtherElements
public List getOtherElements()
Deprecated.Returns a list of elements.- Returns:
- list of elements.
- See Also:
setOtherElements(List)
-
setOtherElements
public void setOtherElements(List otherElements)
Deprecated.Sets a list of elements.- Parameters:
otherElements- a list of elements.- See Also:
getOtherElements()
-
parseBASE64EncodedString
public static FSAuthnRequestEnvelope parseBASE64EncodedString(String encodedReq) throws FSMsgException
Deprecated.ReturnsFSAuthnRequestEnvelopeobject. The object is created by parsing an Base64 encode authentication request String.- Parameters:
encodedReq- the encoded string.- Throws:
FSMsgException
-
toBASE64EncodedString
public String toBASE64EncodedString() throws FSMsgException
Deprecated.Returns a Base64 Encoded Authentication Request String.- Returns:
- a Base64 Encoded Authentication Request String.
- Throws:
FSMsgException- if there is an error encoding the string.
-
-