Package alluxio.security.authentication
Interface SaslServerHandler
-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Implementing Classes:
AbstractSaslServerHandler
,SaslServerHandlerPlain
public interface SaslServerHandler extends java.lang.AutoCloseable
Interface for authentication scheme specificSaslServer
management.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Close the handler and dispose internal resources.AuthenticatedUserInfo
getAuthenticatedUserInfo()
Used to get the authenticated user info after the completed session.alluxio.grpc.SaslMessage
handleMessage(alluxio.grpc.SaslMessage message)
Handles givenSaslMessage
from the client.void
setAuthenticatedUserInfo(AuthenticatedUserInfo userinfo)
To be called by callbacks to store authenticated user information.
-
-
-
Method Detail
-
handleMessage
alluxio.grpc.SaslMessage handleMessage(alluxio.grpc.SaslMessage message) throws javax.security.sasl.SaslException
Handles givenSaslMessage
from the client.- Parameters:
message
- client Sasl message- Returns:
- server's response to given client message
- Throws:
javax.security.sasl.SaslException
-
setAuthenticatedUserInfo
void setAuthenticatedUserInfo(AuthenticatedUserInfo userinfo)
To be called by callbacks to store authenticated user information.- Parameters:
userinfo
- user info
-
getAuthenticatedUserInfo
AuthenticatedUserInfo getAuthenticatedUserInfo()
Used to get the authenticated user info after the completed session.- Returns:
- the authenticated user info
-
close
void close()
Close the handler and dispose internal resources. Implementations should be idempotent.- Specified by:
close
in interfacejava.lang.AutoCloseable
-
-