Package org.graylog.security.authservice
Class AuthServiceAuthenticator
java.lang.Object
org.graylog.security.authservice.AuthServiceAuthenticator
-
Constructor Summary
ConstructorsConstructorDescriptionAuthServiceAuthenticator(GlobalAuthServiceConfig authServiceConfig, ProvisionerService provisionerService) -
Method Summary
Modifier and TypeMethodDescriptionauthenticate(AuthServiceCredentials authCredentials) Tries to authenticate the username with the given password and returns the authenticated username if successful.authenticate(AuthServiceToken token) Tries to authenticate the user with the given token.
-
Constructor Details
-
AuthServiceAuthenticator
@Inject public AuthServiceAuthenticator(GlobalAuthServiceConfig authServiceConfig, ProvisionerService provisionerService)
-
-
Method Details
-
authenticate
Tries to authenticate the user with the given token. -
authenticate
Tries to authenticate the username with the given password and returns the authenticated username if successful.- Parameters:
authCredentials- the authentication credentials- Returns:
- the authenticated username
-