Enum AuthorizationResponse.Action

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BAD_REQUEST
      The authorization request was wrong and the service implementation should notify the client application of the error by "400 Bad Request".
      FORM
      The authorization request was wrong and the service implementation should notify the client application of the error by "200 OK" with an HTML which triggers redirection by JavaScript.
      INTERACTION
      The authorization request was valid and the service implementation should display UI to ask for authorization from the end-user.
      INTERNAL_SERVER_ERROR
      The request from the service implementation was wrong or an error occurred in Authlete.
      LOCATION
      The authorization request was wrong and the service implementation should notify the client application of the error by "302 Found".
      NO_INTERACTION
      The authorization request was valid and the service implementation should issue an authorization code, an ID token and/or an access token without interaction with the end-user.
    • Enum Constant Detail

      • INTERNAL_SERVER_ERROR

        public static final AuthorizationResponse.Action INTERNAL_SERVER_ERROR
        The request from the service implementation was wrong or an error occurred in Authlete. The service implementation should return "500 Internal Server Error" to the client application.
      • BAD_REQUEST

        public static final AuthorizationResponse.Action BAD_REQUEST
        The authorization request was wrong and the service implementation should notify the client application of the error by "400 Bad Request".
      • LOCATION

        public static final AuthorizationResponse.Action LOCATION
        The authorization request was wrong and the service implementation should notify the client application of the error by "302 Found".
      • NO_INTERACTION

        public static final AuthorizationResponse.Action NO_INTERACTION
        The authorization request was valid and the service implementation should issue an authorization code, an ID token and/or an access token without interaction with the end-user.
      • INTERACTION

        public static final AuthorizationResponse.Action INTERACTION
        The authorization request was valid and the service implementation should display UI to ask for authorization from the end-user.
    • Method Detail

      • values

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

        public static AuthorizationResponse.Action 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