Class FSAuthnRequest
- java.lang.Object
-
- com.sun.identity.saml.protocol.AbstractRequest
-
- com.sun.identity.federation.message.FSAuthnRequest
-
@Deprecated public class FSAuthnRequest extends AbstractRequest
Deprecated.since 12.0.0The classFSAuthnRequestis used to create , parseAuthnRequestobject.
-
-
Field Summary
Fields Modifier and Type Field Description protected StringaffiliationIDDeprecated.protected StringassertionConsumerServiceIDDeprecated.protected StringauthContextCompTypeDeprecated.protected StringconsentURIDeprecated.protected StringidDeprecated.protected intminorVersionDeprecated.protected FSScopingscopingDeprecated.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 FSAuthnRequest()Deprecated.Default AuthnRequest construtorFSAuthnRequest(String requestId, List respondWiths, String providerID, boolean forceAuthn, boolean isPassive, boolean fed, String nameIDPolicy, String protocolProf, RequestAuthnContext authnCxt, String relaySt, String authContextCompType)Deprecated.Constructor to createFSAuthnRequestobject.FSAuthnRequest(Element root)Deprecated.Constructor to createFSAuthnRequestobject.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetAffiliationID()Deprecated.Returns the Affliation Identifier.StringgetAssertionConsumerServiceID()Deprecated.Returns the Assertion Consumer Service Identifier.StringgetAuthContextCompType()Deprecated.Returns the value of AuthContext Comparison attribute.RequestAuthnContextgetAuthnContext()Deprecated.Returns theRequestedAuthnContextobject.StringgetConsent()Deprecated.Returns the value ofconsentattribute.ListgetExtensions()Deprecated.Returns a list ofExtensionobjects.booleangetFederate()Deprecated.Returns the value of theFederateattribute.booleangetForceAuthn()Deprecated.Returns the value of Force Authentication attribute.StringgetID()Deprecated.Returns the value ofidattribute.booleangetIsPassive()Deprecated.Returns the value of theisPassiveattribute.intgetMinorVersion()Deprecated.Returns the value of theMinorVersionattribute.StringgetNameIDPolicy()Deprecated.Returns theNameIDPolicyobject.StringgetProtocolProfile()Deprecated.Returns the value ofProtocolProfileattribute.StringgetProviderId()Deprecated.Returns the value ofProviderIDattribute.StringgetRelayState()Deprecated.Returns the value of RelayState attribute.FSScopinggetScoping()Deprecated.Returns theFSScopingobject.StringgetSignatureString()Deprecated.Returns the signature string.StringgetSignedXMLString()Deprecated.Returns Signed XML String representation of this object.static FSAuthnRequestparseBASE64EncodedString(String encodedReq)Deprecated.ReturnsFSAuthnRequestobject.static FSAuthnRequestparseURLEncodedRequest(jakarta.servlet.http.HttpServletRequest request)Deprecated.ReturnsFSAuthnRequestobject.static FSAuthnRequestparseXML(String xml)Deprecated.Returns theFSAuthnRequestobject.voidsetAffiliationID(String affiliationID)Deprecated.Sets the Affiliation Identifier.voidsetAssertionConsumerServiceID(String assertionConsumerServiceID)Deprecated.Sets the Assertion Consumer Service Identifier.voidsetAuthContextCompType(String authType)Deprecated.Sets the value of AuthContext Comparison attribute.voidsetAuthnContext(RequestAuthnContext authnCxt)Deprecated.Sets theRequestedAuthnContextobject.voidsetConsent(String consentURI)Deprecated.Sets the value ofconsentattribute.voidsetExtensions(List extensions)Deprecated.SetsExtensionobjects.voidsetFederate(boolean fed)Deprecated.Sets the value of theFederateattribute.voidsetForceAuthn(boolean forceAuthn)Deprecated.Sets the value of Force Authentication attribute.voidsetID(String id)Deprecated.Sets the value ofidattribute.voidsetIsPassive(boolean isPassive)Deprecated.Sets the value of theIsPassiveattribute.voidsetMinorVersion(int version)Deprecated.Sets the value of theMinorVersionattribute.voidsetNameIDPolicy(String nameIDPolicy)Deprecated.Sets theNameIDPolicyobject.voidsetProtocolProfile(String protocolProf)Deprecated.Sets the value ofProtocolProfileattribute.voidsetProviderId(String provId)Deprecated.Sets the value ofProviderIDattribute.voidsetRelayState(String relaySt)Deprecated.Set the value of RelayState attribute.voidsetScoping(FSScoping scoping)Deprecated.Sets theFSScopingobject.booleansetSignature(Element elem)Deprecated.Sets the Signature of the Element passed.voidsignXML()Deprecated.Unsupported Method.voidsignXML(String certAlias)Deprecated.Signs the Request.StringtoBASE64EncodedString()Deprecated.Returns a Base64 Encoded String.StringtoURLEncodedQueryString()Deprecated.Returns an URL Encoded Query String.StringtoXMLString()Deprecated.This method translates the request to an XML document String based on the Request schema described above.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.-
Methods inherited from class com.sun.identity.saml.protocol.AbstractRequest
addRespondWith, getIssueInstant, getMajorVersion, getRequestID, getRespondWith, getSignature, isSignatureValid, isSigned, setIssueInstant, setMajorVersion, setRequestID
-
-
-
-
Field Detail
-
xmlString
protected String xmlString
Deprecated.
-
signatureString
protected String signatureString
Deprecated.
-
authContextCompType
protected String authContextCompType
Deprecated.
-
id
protected String id
Deprecated.
-
assertionConsumerServiceID
protected String assertionConsumerServiceID
Deprecated.
-
consentURI
protected String consentURI
Deprecated.
-
affiliationID
protected String affiliationID
Deprecated.
-
minorVersion
protected int minorVersion
Deprecated.
-
scoping
protected FSScoping scoping
Deprecated.
-
-
Constructor Detail
-
FSAuthnRequest
public FSAuthnRequest()
Deprecated.Default AuthnRequest construtor
-
FSAuthnRequest
public FSAuthnRequest(String requestId, List respondWiths, String providerID, boolean forceAuthn, boolean isPassive, boolean fed, String nameIDPolicy, String protocolProf, RequestAuthnContext authnCxt, String relaySt, String authContextCompType) throws FSMsgException
Deprecated.Constructor to createFSAuthnRequestobject.- Parameters:
requestId- the request identifier.respondWiths- List of respond withs attributes.providerID- provider id of the requesting provider.forceAuthn- Force Authentication boolean value.isPassive- attribute for IDP to be passive or active.fed- attribute to distingush this request for Federation or SSOnameIDPolicy- Name ID Policy for this request, possible values are "none", "onetime", "federated", "any".protocolProf- ProtocolProfile used for the SSO.authnCxt- Authentication Context used for the SSO.relaySt- Relay State i.e. original URL to be redirected after SSO.authContextCompType- AuthContext comparison type.- Throws:
FSMsgException
-
FSAuthnRequest
public FSAuthnRequest(Element root) throws FSMsgException
Deprecated.Constructor to createFSAuthnRequestobject.- Parameters:
root- the Document Element object.- Throws:
FSMsgException
-
-
Method Detail
-
toXMLString
public String toXMLString() throws FSMsgException
Deprecated.This method translates the request to an XML document String based on the Request schema described above. NOTE: this is a complete AuthnRequest xml string with RequestID, MajorVersion, etc.- Returns:
- XML String representing the request.
- Throws:
FSMsgException- if there is an error.
-
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- if there is an error.
-
parseXML
public static FSAuthnRequest parseXML(String xml) throws FSMsgException
Deprecated.Returns theFSAuthnRequestobject.- Parameters:
xml- the XML string.- Returns:
FSAuthnRequestobject.- Throws:
FSMsgException- if there is error creating the object.
-
getSignedXMLString
public String getSignedXMLString()
Deprecated.Returns Signed XML String representation of this object.- Returns:
- signed XML String.
-
getSignatureString
public String getSignatureString()
Deprecated.Returns the signature string.- Returns:
- the signature string.
-
getExtensions
public List getExtensions()
Deprecated.Returns a list ofExtensionobjects. Each entry of the list is aExtensionobject.- Returns:
- a list of
Extensionelements. - See Also:
setExtensions(List)
-
setExtensions
public void setExtensions(List extensions)
Deprecated.SetsExtensionobjects. Each entry of the list is aExtensionobject.- Parameters:
extensions- a list ofExtensionobjects.- See Also:
getExtensions()
-
getForceAuthn
public boolean getForceAuthn()
Deprecated.Returns the value of Force Authentication attribute.- Returns:
- the value of Force Authentication attribute.
-
setForceAuthn
public void setForceAuthn(boolean forceAuthn)
Deprecated.Sets the value of Force Authentication attribute.- Parameters:
forceAuthn- value of Force Authentication attribute.
-
getIsPassive
public boolean getIsPassive()
Deprecated.Returns the value of theisPassiveattribute.- Returns:
- value of
isPassiveattribute.
-
setIsPassive
public void setIsPassive(boolean isPassive)
Deprecated.Sets the value of theIsPassiveattribute.- Parameters:
isPassive- value ofisPassiveattribute.
-
getFederate
public boolean getFederate()
Deprecated.Returns the value of theFederateattribute.- Returns:
- the value fo the
Federateattribute.
-
setFederate
public void setFederate(boolean fed)
Deprecated.Sets the value of theFederateattribute.- Parameters:
fed- the value of theFederateattribute.
-
getNameIDPolicy
public String getNameIDPolicy()
Deprecated.Returns theNameIDPolicyobject.- Returns:
- the
NameIDPolicyobject. - See Also:
setNameIDPolicy(String)
-
setNameIDPolicy
public void setNameIDPolicy(String nameIDPolicy)
Deprecated.Sets theNameIDPolicyobject.- Parameters:
nameIDPolicy- the newNameIDPolicyobject.- See Also:
getNameIDPolicy()
-
getProtocolProfile
public String getProtocolProfile()
Deprecated.Returns the value ofProtocolProfileattribute.- Returns:
- the value of
ProtocolProfileattribute. - See Also:
setProtocolProfile(String)
-
setProtocolProfile
public void setProtocolProfile(String protocolProf)
Deprecated.Sets the value ofProtocolProfileattribute.- Parameters:
protocolProf- the value ofProtocolProfileattribute.- See Also:
getProtocolProfile()
-
getRelayState
public String getRelayState()
Deprecated.Returns the value of RelayState attribute.- Returns:
- the value of RelayState attribute.
- See Also:
setRelayState(String)
-
setRelayState
public void setRelayState(String relaySt)
Deprecated.Set the value of RelayState attribute.- Parameters:
relaySt- the value of RelayState attribute.- See Also:
getRelayState()
-
getAuthnContext
public RequestAuthnContext getAuthnContext()
Deprecated.Returns theRequestedAuthnContextobject.- Returns:
- the
RequestedAuthnContextobject. - See Also:
setAuthnContext(RequestAuthnContext)
-
setAuthnContext
public void setAuthnContext(RequestAuthnContext authnCxt)
Deprecated.Sets theRequestedAuthnContextobject.- Parameters:
authnCxt- theRequestAuthnContextobject.- See Also:
getAuthnContext()
-
getProviderId
public String getProviderId()
Deprecated.Returns the value ofProviderIDattribute.- Returns:
- the value of
ProviderIDattribute.
-
setProviderId
public void setProviderId(String provId)
Deprecated.Sets the value ofProviderIDattribute.- Parameters:
provId- the value ofProviderIDattribute.- See Also:
getProviderId()
-
getAuthContextCompType
public String getAuthContextCompType()
Deprecated.Returns the value of AuthContext Comparison attribute.- Returns:
- he value of AuthContext Comparison attribute.
- See Also:
setAuthContextCompType(String)
-
setAuthContextCompType
public void setAuthContextCompType(String authType)
Deprecated.Sets the value of AuthContext Comparison attribute.- Parameters:
authType- he value of AuthContext Comparison attribute.- See Also:
getAuthContextCompType()
-
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()
-
getMinorVersion
public int getMinorVersion()
Deprecated.Returns the value of theMinorVersionattribute.- Overrides:
getMinorVersionin classAbstractRequest- Returns:
- the value of the
MinorVersionattribute. - See Also:
setMinorVersion(int)
-
setMinorVersion
public void setMinorVersion(int version)
Deprecated.Sets the value of theMinorVersionattribute.- Overrides:
setMinorVersionin classAbstractRequest- Parameters:
version- the value of theMinorVersionattribute.- See Also:
getMinorVersion()
-
getAffiliationID
public String getAffiliationID()
Deprecated.Returns the Affliation Identifier.- Returns:
- the Affliation Identifier.
- See Also:
setAffiliationID(String)
-
setAffiliationID
public void setAffiliationID(String affiliationID)
Deprecated.Sets the Affiliation Identifier.- Parameters:
affiliationID- the Affiliation Identifier.- See Also:
getAffiliationID()
-
getAssertionConsumerServiceID
public String getAssertionConsumerServiceID()
Deprecated.Returns the Assertion Consumer Service Identifier.- Returns:
- the Assertion Consumer Service Identifier.
- See Also:
setAssertionConsumerServiceID(String)
-
setAssertionConsumerServiceID
public void setAssertionConsumerServiceID(String assertionConsumerServiceID)
Deprecated.Sets the Assertion Consumer Service Identifier.- Parameters:
assertionConsumerServiceID- the Assertion Consumer Service Identifier.- See Also:
getAssertionConsumerServiceID()
-
getConsent
public String getConsent()
Deprecated.Returns the value ofconsentattribute.- Returns:
- the value of
consentattribute. - See Also:
setConsent(String)
-
setConsent
public void setConsent(String consentURI)
Deprecated.Sets the value ofconsentattribute.- Parameters:
consentURI- the value ofconsentattribute.- See Also:
getConsent()
-
setScoping
public void setScoping(FSScoping scoping)
Deprecated.Sets theFSScopingobject.- Parameters:
scoping- theFSScopingobject.- See Also:
getScoping()
-
getScoping
public FSScoping getScoping()
Deprecated.Returns theFSScopingobject.- Returns:
- the
FSScopingobject. - See Also:
setScoping(FSScoping)
-
toURLEncodedQueryString
public String toURLEncodedQueryString() throws FSMsgException
Deprecated.Returns an URL Encoded Query String.- Returns:
- a url encoded query string.
- Throws:
FSMsgException- if there is an error.
-
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.
-
parseURLEncodedRequest
public static FSAuthnRequest parseURLEncodedRequest(jakarta.servlet.http.HttpServletRequest request) throws FSMsgException
Deprecated.ReturnsFSAuthnRequestobject. The object is creating by parsing theHttpServletRequestobject.- Parameters:
request- theHttpServletRequestobject.- Throws:
FSMsgException- if there is an error creatingFSAuthnRequestobject.
-
parseBASE64EncodedString
public static FSAuthnRequest parseBASE64EncodedString(String encodedReq) throws FSMsgException
Deprecated.ReturnsFSAuthnRequestobject. The object is created by parsing an Base64 encode authentication request string.- Parameters:
encodedReq- the encode string- Throws:
FSMsgException- if there is an error creatingFSAuthnRequestobject.
-
signXML
public void signXML(String certAlias) throws SAMLException
Deprecated.Signs the Request.- Parameters:
certAlias- the Certificate Alias.- Throws:
XMLSignatureException- ifFSAuthnRequestcannot be signed.SAMLException
-
signXML
public void signXML() throws SAMLExceptionDeprecated.Unsupported Method.- Specified by:
signXMLin classAbstractRequest- Throws:
SAMLException- If could not sign the object.
-
setSignature
public boolean setSignature(Element elem)
Deprecated.Sets the Signature of the Element passed.- Overrides:
setSignaturein classAbstractRequest- Parameters:
elem- the Document Element.- Returns:
- true if success otherwise false.
-
-