Package io.jans.as.model.common
Enum ResponseMode
- All Implemented Interfaces:
HasParamName,io.jans.orm.annotation.AttributeEnum,Serializable,Comparable<ResponseMode>,java.lang.constant.Constable
public enum ResponseMode
extends Enum<ResponseMode>
implements HasParamName, io.jans.orm.annotation.AttributeEnum
- Version:
- July 28, 2021
- Author:
- Javier Rojas Blum
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIn this mode, Authorization Response parameters are encoded as HTML form values that are auto-submitted in the User Agent, and thus are transmitted via the HTTP POST method to the Client, with the result parameters being encoded in the body using the application/x-www-form-urlencoded format.In this mode, Authorization server uses the OAuth 2.0 Form Post Response Mode technique to convey the JWT to the client.In this mode, Authorization Response parameters are encoded in the fragment added to the redirect_uri when redirecting back to the Client.In this mode, Authorization server sends tha authorization response as HTTP redirect to the redirect URI of the client.The respose mode "jwt" is a shortcut and indicates the default redirect encoding (query, fragment) for the requested response type.In this mode, Authorization Response parameters are encoded in the query string added to the redirect_uri when redirecting back to the Client.In this mode, Authorization server sends the authorization response as HTTP redirect to the redirect URI of the client. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResponseModefromString(String param) static ResponseModegetByValue(String value) getValue()Enum<? extends io.jans.orm.annotation.AttributeEnum>resolveByValue(String value) toString()static ResponseModeReturns the enum constant of this type with the specified name.static ResponseMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
QUERY
In this mode, Authorization Response parameters are encoded in the query string added to the redirect_uri when redirecting back to the Client. -
FRAGMENT
In this mode, Authorization Response parameters are encoded in the fragment added to the redirect_uri when redirecting back to the Client. -
FORM_POST
In this mode, Authorization Response parameters are encoded as HTML form values that are auto-submitted in the User Agent, and thus are transmitted via the HTTP POST method to the Client, with the result parameters being encoded in the body using the application/x-www-form-urlencoded format. -
QUERY_JWT
In this mode, Authorization server sends the authorization response as HTTP redirect to the redirect URI of the client. The authorization server adds the parameter response containing the JWT to the query component of the redirect URI using the "application/x-form-urlencoded" format. -
FRAGMENT_JWT
In this mode, Authorization server sends tha authorization response as HTTP redirect to the redirect URI of the client. The authorization server adds the parameter response containing the JWT to the fragment component of the redirect URI using the "application/x-form-encoded" format. -
FORM_POST_JWT
In this mode, Authorization server uses the OAuth 2.0 Form Post Response Mode technique to convey the JWT to the client. The response parameter containing the JWT is encoded as HTML form value that is auto-submitted in the User Agent, and thus is transmitted via the HTTP POST method to the Client, with the result parameters being encoded in the body using the "application/x-form.encoded" format. -
JWT
The respose mode "jwt" is a shortcut and indicates the default redirect encoding (query, fragment) for the requested response type. The default for response type "code" is "query.jwt" whereas the default for "token" and the response types defined is "fragment.jwt".
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getByValue
-
fromString
-
getParamName
- Specified by:
getParamNamein interfaceHasParamName
-
toString
- Overrides:
toStringin classEnum<ResponseMode>
-
getValue
- Specified by:
getValuein interfaceio.jans.orm.annotation.AttributeEnum
-
resolveByValue
- Specified by:
resolveByValuein interfaceio.jans.orm.annotation.AttributeEnum
-