Package com.onelogin.saml2.authn
Class AuthnRequestParams
- java.lang.Object
-
- com.onelogin.saml2.authn.AuthnRequestParams
-
public class AuthnRequestParams extends java.lang.ObjectInput parameters for a SAML 2 authentication request.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanallowCreateWhen true andsetNameIdPolicyis alsotrue, then the AllowCreate='true' will be set on the NameIDPolicy elementprivate booleanforceAuthnWhen true the AuthNRequest will set the ForceAuthn='true'private booleanisPassiveWhen true the AuthNRequest will set the IsPassive='true'private java.lang.StringnameIdValueReqIndicates to the IdP the subject that should be authenticatedprivate booleansetNameIdPolicyWhen true the AuthNRequest will set a nameIdPolicy
-
Constructor Summary
Constructors Modifier Constructor Description AuthnRequestParams(boolean forceAuthn, boolean isPassive, boolean setNameIdPolicy)Create a set of authentication request input parameters.AuthnRequestParams(boolean forceAuthn, boolean isPassive, boolean setNameIdPolicy, boolean allowCreate)Create a set of authentication request input parameters.AuthnRequestParams(boolean forceAuthn, boolean isPassive, boolean setNameIdPolicy, boolean allowCreate, java.lang.String nameIdValueReq)Create a set of authentication request input parameters.AuthnRequestParams(boolean forceAuthn, boolean isPassive, boolean setNameIdPolicy, java.lang.String nameIdValueReq)Create a set of authentication request input parameters.protectedAuthnRequestParams(AuthnRequestParams source)Create a set of authentication request input parameters, by copying them from another set.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetNameIdValueReq()booleanisAllowCreate()booleanisForceAuthn()booleanisPassive()booleanisSetNameIdPolicy()
-
-
-
Field Detail
-
forceAuthn
private final boolean forceAuthn
When true the AuthNRequest will set the ForceAuthn='true'
-
isPassive
private final boolean isPassive
When true the AuthNRequest will set the IsPassive='true'
-
setNameIdPolicy
private final boolean setNameIdPolicy
When true the AuthNRequest will set a nameIdPolicy
-
allowCreate
private final boolean allowCreate
When true andsetNameIdPolicyis alsotrue, then the AllowCreate='true' will be set on the NameIDPolicy element
-
nameIdValueReq
private final java.lang.String nameIdValueReq
Indicates to the IdP the subject that should be authenticated
-
-
Constructor Detail
-
AuthnRequestParams
public AuthnRequestParams(boolean forceAuthn, boolean isPassive, boolean setNameIdPolicy)Create a set of authentication request input parameters.- Parameters:
forceAuthn- whether theForceAuthnattribute should be set totrueisPassive- whether theIsPassiveattribute should be set totruesetNameIdPolicy- whether aNameIDPolicyshould be set
-
AuthnRequestParams
public AuthnRequestParams(boolean forceAuthn, boolean isPassive, boolean setNameIdPolicy, boolean allowCreate)Create a set of authentication request input parameters.- Parameters:
forceAuthn- whether theForceAuthnattribute should be set totrueisPassive- whether theIsPassiveattribute should be set totruesetNameIdPolicy- whether aNameIDPolicyshould be setallowCreate- whether theAllowCreateattribute should be set totrueon theNameIDPolicyelement; only meaningful ifsetNameIdPolicyis alsotrue
-
AuthnRequestParams
public AuthnRequestParams(boolean forceAuthn, boolean isPassive, boolean setNameIdPolicy, java.lang.String nameIdValueReq)Create a set of authentication request input parameters.- Parameters:
forceAuthn- whether theForceAuthnattribute should be set totrueisPassive- whether theIsPassiveattribute should be set totruesetNameIdPolicy- whether aNameIDPolicyshould be setnameIdValueReq- the subject that should be authenticated
-
AuthnRequestParams
public AuthnRequestParams(boolean forceAuthn, boolean isPassive, boolean setNameIdPolicy, boolean allowCreate, java.lang.String nameIdValueReq)Create a set of authentication request input parameters.- Parameters:
forceAuthn- whether theForceAuthnattribute should be set totrueisPassive- whether theIsPassiveattribute should be set totruesetNameIdPolicy- whether aNameIDPolicyshould be setallowCreate- the value to set for theallowCreateattribute ofNameIDPolicyelement;nullmeans it's not set at all; only meaningful whensetNameIdPolicyistruenameIdValueReq- the subject that should be authenticated
-
AuthnRequestParams
protected AuthnRequestParams(AuthnRequestParams source)
Create a set of authentication request input parameters, by copying them from another set.- Parameters:
source- the source set of authentication request input parameters
-
-
Method Detail
-
isForceAuthn
public boolean isForceAuthn()
- Returns:
- whether the
ForceAuthnattribute should be set totrue
-
isPassive
public boolean isPassive()
- Returns:
- whether the
IsPassiveattribute should be set totrue
-
isSetNameIdPolicy
public boolean isSetNameIdPolicy()
- Returns:
- whether a
NameIDPolicyshould be set
-
isAllowCreate
public boolean isAllowCreate()
- Returns:
- whether the
AllowCreateattribute should be set totrueon theNameIDPolicyelement (only meaningful ifisSetNameIdPolicy()is alsotrue)
-
getNameIdValueReq
public java.lang.String getNameIdValueReq()
- Returns:
- the subject that should be authenticated
-
-