Enum AuthorizationServer
- java.lang.Object
-
- java.lang.Enum<AuthorizationServer>
-
- io.micronaut.security.oauth2.endpoint.endsession.request.AuthorizationServer
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AuthorizationServer>
public enum AuthorizationServer extends java.lang.Enum<AuthorizationServer>
Authorization Servers.- Since:
- 3.2.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<AuthorizationServer>infer(java.lang.String issuer)static AuthorizationServervalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static AuthorizationServer[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OKTA
public static final AuthorizationServer OKTA
-
COGNITO
public static final AuthorizationServer COGNITO
-
KEYCLOAK
public static final AuthorizationServer KEYCLOAK
-
AUTH0
public static final AuthorizationServer AUTH0
-
-
Method Detail
-
values
public static AuthorizationServer[] 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 (AuthorizationServer c : AuthorizationServer.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AuthorizationServer valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
infer
@NonNull public static java.util.Optional<AuthorizationServer> infer(@NonNull java.lang.String issuer)
- Parameters:
issuer- Issuer url- Returns:
- An Authorization Server if it could be infered based on the contents of the issuer or empty if not
-
-