Interface SyncAuthorizationBackend
-
- All Superinterfaces:
AuthorizationBackend
- All Known Subinterfaces:
AuthorizationBackend
- All Known Implementing Classes:
InternalAuthenticationBackend
public interface SyncAuthorizationBackend extends AuthorizationBackend
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidfillRoles(User user, AuthCredentials credentials)Populate aUserwith backend roles.default voidretrieveRoles(User user, AuthCredentials credentials, Consumer<Collection<String>> onSuccess, Consumer<Exception> onFailure)Populate aUserwith backend roles.-
Methods inherited from interface com.floragunn.searchguard.auth.api.AuthorizationBackend
getType
-
-
-
-
Method Detail
-
fillRoles
void fillRoles(User user, AuthCredentials credentials) throws org.elasticsearch.ElasticsearchSecurityException
Populate aUserwith backend roles. This method will not be called for cached users. Add them by calling eitheruser.addRole()oruser.addRoles()- 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!- Throws:
org.elasticsearch.ElasticsearchSecurityException- in case when the authorization backend cannot be reached or thecredentialsare insufficient to authenticate to the authorization backend.
-
retrieveRoles
default 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!
-
-