Enum SecurityAuthorizeMode
- java.lang.Object
- java.lang.Enum<SecurityAuthorizeMode>
- org.springframework.boot.autoconfigure.security.SecurityAuthorizeMode
- All Implemented Interfaces:
Serializable
,Comparable<SecurityAuthorizeMode>
public enum SecurityAuthorizeMode extends Enum<SecurityAuthorizeMode>
Security authorization modes as specified inSecurityProperties
.- Since:
- 1.2.2
Enum Constant Summary
Enum Constants Enum Constant Description AUTHENTICATED
Must be an authenticated user.NONE
No security authorization is setup.ROLE
Must be a member of one of the security roles.
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SecurityAuthorizeMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static SecurityAuthorizeMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
Enum Constant Detail
ROLE
public static final SecurityAuthorizeMode ROLE
Must be a member of one of the security roles.
AUTHENTICATED
public static final SecurityAuthorizeMode AUTHENTICATED
Must be an authenticated user.
NONE
public static final SecurityAuthorizeMode NONE
No security authorization is setup.
Method Detail
values
public static SecurityAuthorizeMode[] 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 (SecurityAuthorizeMode c : SecurityAuthorizeMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
valueOf
public static SecurityAuthorizeMode 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