public class AuthnRequest extends Object
| Constructor and Description |
|---|
AuthnRequest(Saml2Settings settings)
Constructs the AuthnRequest object.
|
AuthnRequest(Saml2Settings settings,
AuthnRequestParams params)
Constructs the AuthnRequest object.
|
AuthnRequest(Saml2Settings settings,
boolean forceAuthn,
boolean isPassive,
boolean setNameIdPolicy)
Deprecated.
|
AuthnRequest(Saml2Settings settings,
boolean forceAuthn,
boolean isPassive,
boolean setNameIdPolicy,
String nameIdValueReq)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthnRequestXml() |
String |
getEncodedAuthnRequest() |
String |
getEncodedAuthnRequest(Boolean deflated) |
String |
getId() |
Calendar |
getIssueInstant()
Returns the issue instant of this message.
|
protected String |
postProcessXml(String authnRequestXml,
AuthnRequestParams params,
Saml2Settings settings)
Allows for an extension class to post-process the AuthnRequest XML generated
for this request, in order to customize the result.
|
public AuthnRequest(Saml2Settings settings)
settings - OneLogin_Saml2_SettingsAuthnRequest(Saml2Settings, AuthnRequestParams)@Deprecated public AuthnRequest(Saml2Settings settings, boolean forceAuthn, boolean isPassive, boolean setNameIdPolicy, String nameIdValueReq)
AuthnRequest(Saml2Settings, AuthnRequestParams) with
AuthnRequestParams.AuthnRequestParams(boolean, boolean, boolean, String)
insteadsettings - OneLogin_Saml2_SettingsforceAuthn - When true the AuthNReuqest will set the ForceAuthn='true'isPassive - When true the AuthNReuqest will set the IsPassive='true'setNameIdPolicy - When true the AuthNReuqest will set a nameIdPolicynameIdValueReq - Indicates to the IdP the subject that should be authenticated@Deprecated public AuthnRequest(Saml2Settings settings, boolean forceAuthn, boolean isPassive, boolean setNameIdPolicy)
AuthnRequest(Saml2Settings, AuthnRequestParams) with
AuthnRequestParams.AuthnRequestParams(boolean, boolean, boolean)
insteadsettings - OneLogin_Saml2_SettingsforceAuthn - When true the AuthNReuqest will set the ForceAuthn='true'isPassive - When true the AuthNReuqest will set the IsPassive='true'setNameIdPolicy - When true the AuthNReuqest will set a nameIdPolicypublic AuthnRequest(Saml2Settings settings, AuthnRequestParams params)
settings - OneLogin_Saml2_Settingsparams - a set of authentication request input parameters that shape the
request to createprotected String postProcessXml(String authnRequestXml, AuthnRequestParams params, Saml2Settings settings)
This method is invoked at construction time, after all the other fields of this class have already been initialised. Its default implementation simply returns the input XML as-is, with no change.
authnRequestXml - the XML produced for this AuthnRequest by the standard
implementation provided by AuthnRequestparams - the authentication request input parameterssettings - the settingsgetAuthnRequestXml()public String getEncodedAuthnRequest(Boolean deflated) throws IOException
deflated - If deflated or not the encoded AuthnRequestIOExceptionpublic String getEncodedAuthnRequest() throws IOException
IOExceptionpublic String getAuthnRequestXml()
public String getId()
Copyright © 2022. All rights reserved.