@NotThreadSafe public final class CustomAuthenticationProvider extends Object implements AuthenticationProvider
AuthenticationProviderto be customized at configuration time. This authentication provider is created if authentication type specified in
AuthType.CUSTOM. It requires the property
alluxio.security.authentication.custom.providerto be set in
AlluxioConfigurationto determine which provider to load.
|Constructor and Description|
Constructs a new custom authentication provider.
|Modifier and Type||Method and Description|
The authenticate method is called by the
public CustomAuthenticationProvider(Class<?> customProviderClass)
customProviderClass- the provider class
public AuthenticationProvider getCustomProvider()
public void authenticate(String user, String password) throws AuthenticationException
PlainSaslServerlayer to authenticate users for their requests. If a user is to be granted, return nothing/throw nothing. When a user is to be disallowed, throw an appropriate
user- The username received over the connection request
password- The password received over the connection request
AuthenticationException- when a user is found to be invalid by the implementation
Copyright © 2023. All Rights Reserved.