Class SaslServerHandlerPlain
- java.lang.Object
-
- alluxio.security.authentication.AbstractSaslServerHandler
-
- alluxio.security.authentication.plain.SaslServerHandlerPlain
-
- All Implemented Interfaces:
SaslServerHandler
,java.lang.AutoCloseable
public class SaslServerHandlerPlain extends AbstractSaslServerHandler
SaslServerHandler
implementation for Plain/Custom schemes.
-
-
Field Summary
-
Fields inherited from class alluxio.security.authentication.AbstractSaslServerHandler
mSaslServer
-
-
Constructor Summary
Constructors Constructor Description SaslServerHandlerPlain(java.lang.String serverName, AlluxioConfiguration conf, ImpersonationAuthenticator authenticator)
CreatesSaslServerHandler
for Plain/Custom.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticatedUserInfo
getAuthenticatedUserInfo()
Used to get the authenticated user info after the completed session.void
setAuthenticatedUserInfo(AuthenticatedUserInfo userinfo)
To be called by callbacks to store authenticated user information.-
Methods inherited from class alluxio.security.authentication.AbstractSaslServerHandler
close, handleMessage
-
-
-
-
Constructor Detail
-
SaslServerHandlerPlain
public SaslServerHandlerPlain(java.lang.String serverName, AlluxioConfiguration conf, ImpersonationAuthenticator authenticator) throws javax.security.sasl.SaslException
CreatesSaslServerHandler
for Plain/Custom.- Parameters:
serverName
- server nameconf
- Alluxio configurationauthenticator
- the impersonation authenticator- Throws:
javax.security.sasl.SaslException
-
-
Method Detail
-
setAuthenticatedUserInfo
public void setAuthenticatedUserInfo(AuthenticatedUserInfo userinfo)
Description copied from interface:SaslServerHandler
To be called by callbacks to store authenticated user information.- Parameters:
userinfo
- user info
-
getAuthenticatedUserInfo
public AuthenticatedUserInfo getAuthenticatedUserInfo()
Description copied from interface:SaslServerHandler
Used to get the authenticated user info after the completed session.- Returns:
- the authenticated user info
-
-