Package com.guinetik.rr.auth
Enum AuthStrategy.AuthType
- java.lang.Object
-
- java.lang.Enum<AuthStrategy.AuthType>
-
- com.guinetik.rr.auth.AuthStrategy.AuthType
-
- All Implemented Interfaces:
Serializable,Comparable<AuthStrategy.AuthType>
- Enclosing interface:
- AuthStrategy
public static enum AuthStrategy.AuthType extends Enum<AuthStrategy.AuthType>
Enum representing different authentication types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BASICBEARER_TOKENNONEOAUTH_ASSERTIONOAUTH_CLIENT_CREDENTIALSOAUTH_IDPOAUTH_PASSWORD
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AuthStrategy.AuthTypevalueOf(String name)Returns the enum constant of this type with the specified name.static AuthStrategy.AuthType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final AuthStrategy.AuthType NONE
-
BEARER_TOKEN
public static final AuthStrategy.AuthType BEARER_TOKEN
-
BASIC
public static final AuthStrategy.AuthType BASIC
-
OAUTH_CLIENT_CREDENTIALS
public static final AuthStrategy.AuthType OAUTH_CLIENT_CREDENTIALS
-
OAUTH_IDP
public static final AuthStrategy.AuthType OAUTH_IDP
-
OAUTH_PASSWORD
public static final AuthStrategy.AuthType OAUTH_PASSWORD
-
OAUTH_ASSERTION
public static final AuthStrategy.AuthType OAUTH_ASSERTION
-
-
Method Detail
-
values
public static AuthStrategy.AuthType[] 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 (AuthStrategy.AuthType c : AuthStrategy.AuthType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AuthStrategy.AuthType 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
-
-