@Deprecated public class FSAuthnRequest extends AbstractRequest
FSAuthnRequest
is used to create , parse
AuthnRequest
object.Modifier and Type | Field and Description |
---|---|
protected String |
affiliationID
Deprecated.
|
protected String |
assertionConsumerServiceID
Deprecated.
|
protected String |
authContextCompType
Deprecated.
|
protected String |
consentURI
Deprecated.
|
protected String |
id
Deprecated.
|
protected int |
minorVersion
Deprecated.
|
protected FSScoping |
scoping
Deprecated.
|
protected String |
signatureString
Deprecated.
|
protected String |
xmlString
Deprecated.
|
issueInstant, majorVersion, requestID, respondWiths, signature, signed, valid
Constructor and Description |
---|
FSAuthnRequest()
Deprecated.
Default AuthnRequest construtor
|
FSAuthnRequest(Element root)
Deprecated.
Constructor to create
FSAuthnRequest object. |
FSAuthnRequest(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 create
FSAuthnRequest object. |
Modifier and Type | Method and Description |
---|---|
String |
getAffiliationID()
Deprecated.
Returns the Affliation Identifier.
|
String |
getAssertionConsumerServiceID()
Deprecated.
Returns the Assertion Consumer Service Identifier.
|
String |
getAuthContextCompType()
Deprecated.
Returns the value of AuthContext Comparison attribute.
|
RequestAuthnContext |
getAuthnContext()
Deprecated.
Returns the
RequestedAuthnContext object. |
String |
getConsent()
Deprecated.
Returns the value of
consent attribute. |
List |
getExtensions()
Deprecated.
Returns a list of
Extension objects. |
boolean |
getFederate()
Deprecated.
Returns the value of the
Federate attribute. |
boolean |
getForceAuthn()
Deprecated.
Returns the value of Force Authentication attribute.
|
String |
getID()
Deprecated.
Returns the value of
id attribute. |
boolean |
getIsPassive()
Deprecated.
Returns the value of the
isPassive attribute. |
int |
getMinorVersion()
Deprecated.
Returns the value of the
MinorVersion attribute. |
String |
getNameIDPolicy()
Deprecated.
Returns the
NameIDPolicy object. |
String |
getProtocolProfile()
Deprecated.
Returns the value of
ProtocolProfile |
String |
getProviderId()
Deprecated.
Returns the value of
ProviderID attribute. |
String |
getRelayState()
Deprecated.
Returns the value of RelayState attribute.
|
FSScoping |
getScoping()
Deprecated.
Returns the
FSScoping object. |
String |
getSignatureString()
Deprecated.
Returns the signature string.
|
String |
getSignedXMLString()
Deprecated.
Returns Signed XML String representation of this object.
|
static FSAuthnRequest |
parseBASE64EncodedString(String encodedReq)
Deprecated.
Returns
FSAuthnRequest object. |
static FSAuthnRequest |
parseURLEncodedRequest(javax.servlet.http.HttpServletRequest request)
Deprecated.
Returns
FSAuthnRequest object. |
static FSAuthnRequest |
parseXML(String xml)
Deprecated.
Returns the
FSAuthnRequest object. |
void |
setAffiliationID(String affiliationID)
Deprecated.
Sets the Affiliation Identifier.
|
void |
setAssertionConsumerServiceID(String assertionConsumerServiceID)
Deprecated.
Sets the Assertion Consumer Service Identifier.
|
void |
setAuthContextCompType(String authType)
Deprecated.
Sets the value of AuthContext Comparison attribute.
|
void |
setAuthnContext(RequestAuthnContext authnCxt)
Deprecated.
Sets the
RequestedAuthnContext object. |
void |
setConsent(String consentURI)
Deprecated.
Sets the value of
consent attribute. |
void |
setExtensions(List extensions)
Deprecated.
Sets
Extension objects. |
void |
setFederate(boolean fed)
Deprecated.
Sets the value of the
Federate attribute. |
void |
setForceAuthn(boolean forceAuthn)
Deprecated.
Sets the value of Force Authentication attribute.
|
void |
setID(String id)
Deprecated.
Sets the value of
id attribute. |
void |
setIsPassive(boolean isPassive)
Deprecated.
Sets the value of the
IsPassive attribute. |
void |
setMinorVersion(int version)
Deprecated.
Sets the value of the
MinorVersion attribute. |
void |
setNameIDPolicy(String nameIDPolicy)
Deprecated.
Sets the
NameIDPolicy object. |
void |
setProtocolProfile(String protocolProf)
Deprecated.
Sets the value of
ProtocolProfile |
void |
setProviderId(String provId)
Deprecated.
Sets the value of
ProviderID attribute. |
void |
setRelayState(String relaySt)
Deprecated.
Set the value of RelayState attribute.
|
void |
setScoping(FSScoping scoping)
Deprecated.
Sets the
FSScoping object. |
boolean |
setSignature(Element elem)
Deprecated.
Sets the Signature of the Element passed.
|
void |
signXML()
Deprecated.
Unsupported Method.
|
void |
signXML(String certAlias)
Deprecated.
Signs the Request.
|
String |
toBASE64EncodedString()
Deprecated.
Returns a Base64 Encoded String.
|
String |
toURLEncodedQueryString()
Deprecated.
Returns an URL Encoded Query String.
|
String |
toXMLString()
Deprecated.
This method translates the request to an XML document String based on
the Request schema described above.
|
String |
toXMLString(boolean includeNS,
boolean declareNS)
Deprecated.
Creates a String representation of the <lib:AuthnRequest> element.
|
String |
toXMLString(boolean includeNS,
boolean declareNS,
boolean includeHeader)
Deprecated.
Creates a String representation of the <lib:AuthnRequest> element.
|
addRespondWith, getIssueInstant, getMajorVersion, getRequestID, getRespondWith, getSignature, isSignatureValid, isSigned, setIssueInstant, setMajorVersion, setRequestID
protected String xmlString
protected String signatureString
protected String authContextCompType
protected String id
protected String assertionConsumerServiceID
protected String consentURI
protected String affiliationID
protected int minorVersion
protected FSScoping scoping
public 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
FSAuthnRequest
object.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.FSMsgException
- on error.FSMsgException
public FSAuthnRequest(Element root) throws FSMsgException
FSAuthnRequest
object.root
- the Document Element object.FSMsgException
- on error.FSMsgException
public String toXMLString() throws FSMsgException
FSMsgException
- if there is an error.public 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 there is an error.public 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 there is an error.public static FSAuthnRequest parseXML(String xml) throws FSMsgException
FSAuthnRequest
object.xml
- the XML string.FSAuthnRequest
object.FSMsgException
- if there is
error creating the object.public String getSignedXMLString()
public String getSignatureString()
public List getExtensions()
Extension
objects.
Each entry of the list is a Extension
object.Extension
elements.setExtensions(List)
public void setExtensions(List extensions)
Extension
objects.
Each entry of the list is a Extension
object.extensions
- a list of Extension
objects.getExtensions()
public boolean getForceAuthn()
public void setForceAuthn(boolean forceAuthn)
forceAuthn
- value of Force Authentication attribute.public boolean getIsPassive()
isPassive
attribute.isPassive
attribute.public void setIsPassive(boolean isPassive)
IsPassive
attribute.isPassive
- value of isPassive
attribute.public boolean getFederate()
Federate
attribute.Federate
attribute.public void setFederate(boolean fed)
Federate
attribute.fed
- the value of the Federate
attribute.public String getNameIDPolicy()
NameIDPolicy
object.NameIDPolicy
object.setNameIDPolicy(String)
public void setNameIDPolicy(String nameIDPolicy)
NameIDPolicy
object.nameIDPolicy
- the new NameIDPolicy
object.getNameIDPolicy()
public String getProtocolProfile()
ProtocolProfile attribute.
ProtocolProfile attribute.
setProtocolProfile(String)
public void setProtocolProfile(String protocolProf)
ProtocolProfile attribute.
protocolProf
- the value of ProtocolProfile attribute.
getProtocolProfile()
public String getRelayState()
setRelayState(String)
public void setRelayState(String relaySt)
relaySt
- the value of RelayState attribute.getRelayState()
public RequestAuthnContext getAuthnContext()
RequestedAuthnContext
object.RequestedAuthnContext
object.setAuthnContext(RequestAuthnContext)
public void setAuthnContext(RequestAuthnContext authnCxt)
RequestedAuthnContext
object.authnCxt
- the RequestAuthnContext
object.getAuthnContext()
public String getProviderId()
ProviderID
attribute.ProviderID
attribute.setProviderId(String).
public void setProviderId(String provId)
ProviderID
attribute.provId
- the value of ProviderID
attribute.getProviderId()
public String getAuthContextCompType()
setAuthContextCompType(String)
public void setAuthContextCompType(String authType)
authType
- he value of AuthContext Comparison attribute.getAuthContextCompType()
public String getID()
id
attribute.id
attribute.setID(String)
public void setID(String id)
id
attribute.id
- the value of id
attribute.getID()
public int getMinorVersion()
MinorVersion
attribute.getMinorVersion
in class AbstractRequest
MinorVersion
attribute.setMinorVersion(int)
public void setMinorVersion(int version)
MinorVersion
attribute.setMinorVersion
in class AbstractRequest
version
- the value of the MinorVersion
attribute.getMinorVersion()
public String getAffiliationID()
setAffiliationID(String)
public void setAffiliationID(String affiliationID)
affiliationID
- the Affiliation Identifier.getAffiliationID()
public String getAssertionConsumerServiceID()
setAssertionConsumerServiceID(String)
public void setAssertionConsumerServiceID(String assertionConsumerServiceID)
assertionConsumerServiceID
- the Assertion Consumer
Service Identifier.getAssertionConsumerServiceID()
public String getConsent()
consent
attribute.consent
attribute.setConsent(String)
public void setConsent(String consentURI)
consent
attribute.consentURI
- the value of consent
attribute.getConsent()
public void setScoping(FSScoping scoping)
FSScoping
object.scoping
- the FSScoping
object.getScoping()
public FSScoping getScoping()
FSScoping
object.FSScoping
object.setScoping(FSScoping)
public String toURLEncodedQueryString() throws FSMsgException
FSMsgException
- if there is an error.public String toBASE64EncodedString() throws FSMsgException
FSMsgException
- if there is an error encoding
the string.public static FSAuthnRequest parseURLEncodedRequest(javax.servlet.http.HttpServletRequest request) throws FSMsgException
FSAuthnRequest
object. The
object is creating by parsing the HttpServletRequest
object.request
- the HttpServletRequest
object.FSMsgException
- if there is an error
creating FSAuthnRequest
object.public static FSAuthnRequest parseBASE64EncodedString(String encodedReq) throws FSMsgException
FSAuthnRequest
object. The object
is created by parsing an Base64 encode authentication
request string.encodedReq
- the encode stringFSMsgException
- if there is an error
creating FSAuthnRequest
object.public void signXML(String certAlias) throws SAMLException
certAlias
- the Certificate Alias.XMLSignatureException
- if FSAuthnRequest
cannot be signed.SAMLException
public void signXML() throws SAMLException
signXML
in class AbstractRequest
SAMLException
- If could not sign the object.public boolean setSignature(Element elem)
setSignature
in class AbstractRequest
elem
- the Document Element.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.