Package com.onelogin.saml2.authn
Class AuthnRequestParams
java.lang.Object
com.onelogin.saml2.authn.AuthnRequestParams
Input parameters for a SAML 2 authentication request.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanWhen true andsetNameIdPolicyis alsotrue, then the AllowCreate='true' will be set on the NameIDPolicy elementprivate final booleanWhen true the AuthNRequest will set the ForceAuthn='true'private final booleanWhen true the AuthNRequest will set the IsPassive='true'private final StringIndicates to the IdP the subject that should be authenticatedprivate final booleanWhen true the AuthNRequest will set a nameIdPolicy -
Constructor Summary
ConstructorsModifierConstructorDescriptionAuthnRequestParams(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, String nameIdValueReq) Create a set of authentication request input parameters.AuthnRequestParams(boolean forceAuthn, boolean isPassive, boolean setNameIdPolicy, 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
Modifier and TypeMethodDescriptionbooleanbooleanbooleanboolean
-
Field Details
-
forceAuthn
private final boolean forceAuthnWhen true the AuthNRequest will set the ForceAuthn='true' -
isPassive
private final boolean isPassiveWhen true the AuthNRequest will set the IsPassive='true' -
setNameIdPolicy
private final boolean setNameIdPolicyWhen true the AuthNRequest will set a nameIdPolicy -
allowCreate
private final boolean allowCreateWhen true andsetNameIdPolicyis alsotrue, then the AllowCreate='true' will be set on the NameIDPolicy element -
nameIdValueReq
Indicates to the IdP the subject that should be authenticated
-
-
Constructor Details
-
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, 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, 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
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 Details
-
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
- Returns:
- the subject that should be authenticated
-