Enum AuthModuleSecondFactorPolicy
- java.lang.Object
-
- java.lang.Enum<AuthModuleSecondFactorPolicy>
-
- jetbrains.buildServer.serverSide.auth.AuthModuleSecondFactorPolicy
-
- All Implemented Interfaces:
Serializable
,Comparable<AuthModuleSecondFactorPolicy>
public enum AuthModuleSecondFactorPolicy extends Enum<AuthModuleSecondFactorPolicy>
Possible two-factor policies forAuthModuleType
. Generally, it is persisted in auth module properties. Auth module may support not all of these policies.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALWAYS_ASK
For now, it can't be set in the UI, but only in the auth-config.xml fileNEVER_ASK
Never ask for a second factor.SKIP_IF_EXTERNAL_2FA
Skip the second factor for users, who configured it in another provider.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AuthModuleSecondFactorPolicy
valueOf(String name)
Returns the enum constant of this type with the specified name.static AuthModuleSecondFactorPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALWAYS_ASK
public static final AuthModuleSecondFactorPolicy ALWAYS_ASK
For now, it can't be set in the UI, but only in the auth-config.xml file
-
NEVER_ASK
public static final AuthModuleSecondFactorPolicy NEVER_ASK
Never ask for a second factor. After login, user with active 2FA will not be asked for it
-
SKIP_IF_EXTERNAL_2FA
public static final AuthModuleSecondFactorPolicy SKIP_IF_EXTERNAL_2FA
Skip the second factor for users, who configured it in another provider. Mostly applicable for OAuth providers.
-
-
Method Detail
-
values
public static AuthModuleSecondFactorPolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AuthModuleSecondFactorPolicy c : AuthModuleSecondFactorPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AuthModuleSecondFactorPolicy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-