Class NoOpAuthenticationBackend

    • Constructor Detail

      • NoOpAuthenticationBackend

        public NoOpAuthenticationBackend​(org.elasticsearch.common.settings.Settings settings,
                                         Path configPath)
    • Method Detail

      • authenticate

        public User authenticate​(AuthCredentials credentials)
        Description copied from interface: SyncAuthenticationBackend
        Validate credentials and return an authenticated user (or throw an ElasticsearchSecurityException)

        Results of this method are normally cached so that we not need to query the backend for every authentication attempt.

        Specified by:
        authenticate in interface SyncAuthenticationBackend
        Returns:
        the authenticated User, never null
      • exists

        public boolean exists​(User user)
        Description copied from interface: AuthenticationBackend
        Lookup for a specific user in the authentication backend
        Specified by:
        exists in interface AuthenticationBackend
        Parameters:
        user - The user for which the authentication backend should be queried. If the authentication backend supports user attributes in combination with impersonation the attributes needs to be added to user by calling user.addAttributes()
        Returns:
        true if the user exists in the authentication backend, false otherwise. Before return call user.addAttributes() as explained above.