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 voidfillRoles(User user, AuthCredentials authCreds)Populate aUserwith backend roles.StringgetType()The type (name) of the authorizer.
-
-
-
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
-
fillRoles
public void fillRoles(User user, AuthCredentials authCreds)
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:
fillRolesin interfaceAuthorizationBackend- Parameters:
user- The authenticated user to populate with backend roles, never nullauthCreds- Credentials to authenticate to the authorization backend, maybe null. This parameter is for future usage, currently always empty credentials are passed!
-
-