Enum IOAuthListener.Code

    • Enum Constant Summary

      Enum Constants 
      Enum ConstantDescription
      ACCESS_DENIED
      The resource owner or authorization server denied the request.
      DISPOSED
      Application session disposed of, authentication process aborted.
      DISPOSED_BLOCKED
      Application session disposed of because the authentication process was blocked by the security or privacy settings of the browser.
      DISPOSED_USER_CANCEL
      Application session disposed of because the authentication process was canceled by the user, closing the authentication window.
      INCOMPLETE
      Authentication process is ongoing and has not completed.
      INVALID_REQUEST
      The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.
      INVALID_SCOPE
      The requested scope is invalid, unknown, or malformed.
      INVALID_STATE
      Invalid state returned in authorization.
      SERVER_ERROR
      The authorization server encountered an unexpected condition that prevented it from fulfilling the request.
      SUCCESS
      Authentication successful.
      TEMPORARILY_UNAVAILABLE
      The authorization server is currently unable to handle the request due to a temporary overloading or maintenance of the server.
      UNAUTHORIZED_CLIENT
      The client is not authorized to request an authorization code using this method.
      UNKNOWN_ERROR
      Unknown error, the server replied with a error code that does not comply with RFC 6749.
      UNSUPPORTED_RESPONSE_TYPE
      The authorization server does not support obtaining an authorization code using this method.
      USER_CANCEL
      User has canceled the authentication process.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static IOAuthListener.CodefromString​(java.lang.String errorCode)
      Returns the code from a string in the HTTP reply.
      static IOAuthListener.CodevalueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static IOAuthListener.Code[]values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • INCOMPLETE

        public static final IOAuthListener.Code INCOMPLETE
        Authentication process is ongoing and has not completed.
      • USER_CANCEL

        public static final IOAuthListener.Code USER_CANCEL
        User has canceled the authentication process.
      • DISPOSED

        public static final IOAuthListener.Code DISPOSED
        Application session disposed of, authentication process aborted.
      • DISPOSED_BLOCKED

        public static final IOAuthListener.Code DISPOSED_BLOCKED
        Application session disposed of because the authentication process was blocked by the security or privacy settings of the browser.
      • DISPOSED_USER_CANCEL

        public static final IOAuthListener.Code DISPOSED_USER_CANCEL
        Application session disposed of because the authentication process was canceled by the user, closing the authentication window.
      • INVALID_REQUEST

        public static final IOAuthListener.Code INVALID_REQUEST
        The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.
      • UNAUTHORIZED_CLIENT

        public static final IOAuthListener.Code UNAUTHORIZED_CLIENT
        The client is not authorized to request an authorization code using this method.
      • ACCESS_DENIED

        public static final IOAuthListener.Code ACCESS_DENIED
        The resource owner or authorization server denied the request.
      • INVALID_STATE

        public static final IOAuthListener.Code INVALID_STATE
        Invalid state returned in authorization.
      • UNSUPPORTED_RESPONSE_TYPE

        public static final IOAuthListener.Code UNSUPPORTED_RESPONSE_TYPE
        The authorization server does not support obtaining an authorization code using this method.
      • INVALID_SCOPE

        public static final IOAuthListener.Code INVALID_SCOPE
        The requested scope is invalid, unknown, or malformed.
      • SERVER_ERROR

        public static final IOAuthListener.Code SERVER_ERROR
        The authorization server encountered an unexpected condition that prevented it from fulfilling the request. (This error code is needed because a 500 Internal Server Error HTTP status code cannot be returned to the client via an HTTP redirect.)
      • TEMPORARILY_UNAVAILABLE

        public static final IOAuthListener.Code TEMPORARILY_UNAVAILABLE
        The authorization server is currently unable to handle the request due to a temporary overloading or maintenance of the server. (This error code is needed because a 503 Service Unavailable HTTP status code cannot be returned to the client via an HTTP redirect.)
      • UNKNOWN_ERROR

        public static final IOAuthListener.Code UNKNOWN_ERROR
        Unknown error, the server replied with a error code that does not comply with RFC 6749.
    • Method Detail

      • values

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

        public static IOAuthListener.Code 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 name
        java.lang.NullPointerException - if the argument is null
      • fromString

        public static IOAuthListener.Code fromString​(java.lang.String errorCode)
        Returns the code from a string in the HTTP reply.
        Returns:
        One of the error codes