public abstract class AbstractSaslClientHandler extends Object implements SaslClientHandler
SaslClientHandler
implementation that maintains SaslClient
instance.Modifier and Type | Field and Description |
---|---|
protected SaslClient |
mSaslClient
Underlying SaslClient.
|
Constructor and Description |
---|
AbstractSaslClientHandler(ChannelAuthenticationScheme authScheme)
Creates an abstract sasl handler for given scheme.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
This is synchronized in order to protect
mSaslClient . |
SaslMessage |
handleMessage(SaslMessage message)
This is synchronized in order to protect
mSaslClient . |
protected SaslClient mSaslClient
public AbstractSaslClientHandler(ChannelAuthenticationScheme authScheme)
authScheme
- channel authentication schemepublic SaslMessage handleMessage(SaslMessage message) throws SaslException
mSaslClient
.handleMessage
in interface SaslClientHandler
message
- server-side Sasl message to handleSaslException
public void close()
mSaslClient
.close
in interface SaslClientHandler
close
in interface AutoCloseable
Copyright © 2023. All Rights Reserved.