Package org.keycloak.protocol.oidc.utils
Enum OIDCResponseMode
- java.lang.Object
-
- java.lang.Enum<OIDCResponseMode>
-
- org.keycloak.protocol.oidc.utils.OIDCResponseMode
-
- All Implemented Interfaces:
Serializable
,Comparable<OIDCResponseMode>
public enum OIDCResponseMode extends Enum<OIDCResponseMode>
- Author:
- Marek Posolda
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FORM_POST
FORM_POST_JWT
FRAGMENT
FRAGMENT_JWT
JWT
QUERY
QUERY_JWT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OIDCResponseMode
parse(String responseMode, OIDCResponseType responseType)
static OIDCResponseMode
parseWhenInvalidResponseType(String responseMode)
String
value()
static OIDCResponseMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static OIDCResponseMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
QUERY
public static final OIDCResponseMode QUERY
-
JWT
public static final OIDCResponseMode JWT
-
FRAGMENT
public static final OIDCResponseMode FRAGMENT
-
FORM_POST
public static final OIDCResponseMode FORM_POST
-
QUERY_JWT
public static final OIDCResponseMode QUERY_JWT
-
FRAGMENT_JWT
public static final OIDCResponseMode FRAGMENT_JWT
-
FORM_POST_JWT
public static final OIDCResponseMode FORM_POST_JWT
-
-
Method Detail
-
values
public static OIDCResponseMode[] 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 (OIDCResponseMode c : OIDCResponseMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OIDCResponseMode 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
-
parse
public static OIDCResponseMode parse(String responseMode, OIDCResponseType responseType)
-
parseWhenInvalidResponseType
public static OIDCResponseMode parseWhenInvalidResponseType(String responseMode)
-
value
public String value()
-
-