Enum ResponseMode

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      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.
      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.
      FRAGMENT
      In this mode, Authorization Response parameters are encoded in the fragment added to the redirect_uri when redirecting back to the Client.
      FRAGMENT_JWT
      In this mode, Authorization server sends tha authorization response as HTTP redirect to the redirect URI of the client.
      JWT
      The respose mode "jwt" is a shortcut and indicates the default redirect encoding (query, fragment) for the requested response type.
      QUERY
      In this mode, Authorization Response parameters are encoded in the query string added to the redirect_uri when redirecting back to the Client.
      QUERY_JWT
      In this mode, Authorization server sends the authorization response as HTTP redirect to the redirect URI of the client.
    • Enum Constant Detail

      • QUERY

        public static final ResponseMode 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

        public static final ResponseMode 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

        public static final ResponseMode 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.
      • FORM_POST_JWT

        public static final ResponseMode 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.
        See Also:
        Financial-grade API: JWT Secured Authorization Response Mode for OAuth 2.0 (JARM)
    • Method Detail

      • values

        public static ResponseMode[] 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 (ResponseMode c : ResponseMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ResponseMode 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 name
        NullPointerException - if the argument is null
      • getValue

        public String getValue()
        Specified by:
        getValue in interface io.jans.orm.annotation.AttributeEnum
      • resolveByValue

        public Enum<? extends io.jans.orm.annotation.AttributeEnum> resolveByValue​(String value)
        Specified by:
        resolveByValue in interface io.jans.orm.annotation.AttributeEnum