java.lang.Object
org.codelibs.saml2.core.authn.AuthnRequestParams
Input parameters for a SAML 2 authentication request.
-
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
-
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
-