Package alluxio.security.authentication
Class AbstractSaslClientHandler
- java.lang.Object
-
- alluxio.security.authentication.AbstractSaslClientHandler
-
- All Implemented Interfaces:
SaslClientHandler
,java.lang.AutoCloseable
- Direct Known Subclasses:
SaslClientHandlerPlain
public abstract class AbstractSaslClientHandler extends java.lang.Object implements SaslClientHandler
AbstractSaslClientHandler
implementation that maintainsSaslClient
instance.
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.security.sasl.SaslClient
mSaslClient
Underlying SaslClient.
-
Constructor Summary
Constructors Constructor Description AbstractSaslClientHandler(alluxio.grpc.ChannelAuthenticationScheme authScheme)
Creates an abstract sasl handler for given scheme.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
This is synchronized in order to protectmSaslClient
.alluxio.grpc.SaslMessage
handleMessage(alluxio.grpc.SaslMessage message)
This is synchronized in order to protectmSaslClient
.
-
-
-
Method Detail
-
handleMessage
public alluxio.grpc.SaslMessage handleMessage(alluxio.grpc.SaslMessage message) throws javax.security.sasl.SaslException
This is synchronized in order to protectmSaslClient
.- Specified by:
handleMessage
in interfaceSaslClientHandler
- Parameters:
message
- server-side Sasl message to handle- Returns:
- client's answer. null if client is completed
- Throws:
javax.security.sasl.SaslException
-
close
public void close()
This is synchronized in order to protectmSaslClient
.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceSaslClientHandler
-
-