Class NoOpAuthorizationBackend
- java.lang.Object
-
- com.floragunn.searchguard.auth.internal.NoOpAuthorizationBackend
-
- All Implemented Interfaces:
AuthorizationBackend
public class NoOpAuthorizationBackend extends Object implements AuthorizationBackend
-
-
Constructor Summary
Constructors Constructor Description NoOpAuthorizationBackend(org.elasticsearch.common.settings.Settings settings, Path configPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetType()The type (name) of the authorizer.voidretrieveRoles(User user, AuthCredentials credentials, Consumer<Collection<String>> onSuccess, Consumer<Exception> onFailure)Populate aUserwith backend roles.
-
-
-
Constructor Detail
-
NoOpAuthorizationBackend
public NoOpAuthorizationBackend(org.elasticsearch.common.settings.Settings settings, Path configPath)
-
-
Method Detail
-
getType
public String getType()
Description copied from interface:AuthorizationBackendThe type (name) of the authorizer. Only for logging.- Specified by:
getTypein interfaceAuthorizationBackend- Returns:
- the type
-
retrieveRoles
public void retrieveRoles(User user, AuthCredentials credentials, Consumer<Collection<String>> onSuccess, Consumer<Exception> onFailure)
Description copied from interface:AuthorizationBackendPopulate aUserwith backend roles. This method will not be called for cached users. Add them by calling eitheruser.addRole()oruser.addRoles()- Specified by:
retrieveRolesin interfaceAuthorizationBackend- Parameters:
user- The authenticated user to populate with backend roles, never nullcredentials- Credentials to authenticate to the authorization backend, maybe null. This parameter is for future usage, currently always empty credentials are passed!
-
-