Enum OAuthAPI

    • Enum Constant Detail

      • SaveClientScopeAuthorization

        public static final OAuthAPI SaveClientScopeAuthorization
      • SaveOAuthCode

        public static final OAuthAPI SaveOAuthCode
      • SaveOAuthToken

        public static final OAuthAPI SaveOAuthToken
      • GetAuthorizedScopes

        public static final OAuthAPI GetAuthorizedScopes
      • GetOAuthCode

        public static final OAuthAPI GetOAuthCode
      • GetOAuthToken

        public static final OAuthAPI GetOAuthToken
      • GetOAuthTokenByRefreshToken

        public static final OAuthAPI GetOAuthTokenByRefreshToken
      • GetClient

        public static final OAuthAPI GetClient
      • GetAuthorizedScopesRFC6749

        public static final OAuthAPI GetAuthorizedScopesRFC6749
        To follow https://datatracker.ietf.org/doc/html/rfc6749#section-3.3 We should provide "default scopes" in case authorization request has not "scope" param, otherwise we must provide requested by User Scopes (based on our Authz module)
      • DeAuthorizeClient

        public static final OAuthAPI DeAuthorizeClient
      • REVOKE_TOKEN

        public static final OAuthAPI REVOKE_TOKEN
      • GET_OAUTH_TOKENS_BY_USERID

        public static final OAuthAPI GET_OAUTH_TOKENS_BY_USERID
      • REVOKE_ID_TOKEN

        public static final OAuthAPI REVOKE_ID_TOKEN
    • Method Detail

      • values

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

        public static OAuthAPI 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