Class CoreUserApiKeyAuthProviderClient

    • Method Detail

      • createApiKeyInternal

        protected UserApiKey createApiKeyInternal​(String name)
        Creates a user API key that can be used to authenticate as the current user.
        Parameters:
        name - The name of the API key to be created
        Returns:
        the created API key.
      • fetchApiKeyInternal

        protected UserApiKey fetchApiKeyInternal​(ObjectId id)
        Fetches a user API key associated with the current user.
        Parameters:
        id - The id of the API key to be fetched.
        Returns:
        the API key.
      • fetchApiKeysInternal

        protected List<UserApiKey> fetchApiKeysInternal()
        Fetches the user API keys associated with the current user.
        Returns:
        the user API keys associated with the current user.
      • deleteApiKeyInternal

        protected void deleteApiKeyInternal​(ObjectId id)
        Deletes a user API key associated with the current user.
        Parameters:
        id - The id of the API key to delete.
      • enableApiKeyInternal

        protected void enableApiKeyInternal​(ObjectId id)
        Enables a user API key associated with the current user.
        Parameters:
        id - The id of the API key to enable.
      • disableApiKeyInternal

        protected void disableApiKeyInternal​(ObjectId id)
        Disables a user API key associated with the current user.
        Parameters:
        id - The id of the API key to disable.