public class SaslMessageToken extends Object implements INettySerializable
Send and receive SASL tokens.
| Modifier and Type | Field and Description |
|---|---|
static short |
IDENTIFIER |
| Constructor and Description |
|---|
SaslMessageToken()
Constructor used for reflection only.
|
SaslMessageToken(byte[] token)
Constructor used to send request.
|
| Modifier and Type | Method and Description |
|---|---|
int |
encodeLength() |
byte[] |
getSaslToken()
Read accessor for SASL token.
|
static SaslMessageToken |
read(byte[] serial) |
void |
setSaslToken(byte[] token)
Write accessor for SASL token.
|
void |
write(org.apache.storm.shade.io.netty.buffer.ByteBuf dest)
encode the current SaslToken Message into a ByteBuf.
|
public static final short IDENTIFIER
public SaslMessageToken()
Constructor used for reflection only.
public SaslMessageToken(byte[] token)
Constructor used to send request.
token - the SASL token, generated by a SaslClient or SaslServer.public static SaslMessageToken read(byte[] serial)
public byte[] getSaslToken()
Read accessor for SASL token.
public void setSaslToken(byte[] token)
Write accessor for SASL token.
token - SASL tokenpublic int encodeLength()
encodeLength in interface INettySerializablepublic void write(org.apache.storm.shade.io.netty.buffer.ByteBuf dest)
encode the current SaslToken Message into a ByteBuf.
SaslTokenMessageRequest is encoded as: identifier …. short(2) payload length …. int payload …. byte[]
write in interface INettySerializabledest - The ByteBuf to serialize toCopyright © 2021 The Apache Software Foundation. All rights reserved.