public class SaslMessageToken extends Object implements INettySerializable
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()
public SaslMessageToken(byte[] token)
token
- the SASL token, generated by a SaslClient or SaslServer.public static SaslMessageToken read(byte[] serial)
public byte[] getSaslToken()
public void setSaslToken(byte[] token)
token
- SASL tokenpublic int encodeLength()
encodeLength
in interface INettySerializable
public void write(org.apache.storm.shade.io.netty.buffer.ByteBuf dest)
SaslTokenMessageRequest is encoded as: identifier .... short(2) payload length .... int payload .... byte[]
write
in interface INettySerializable
dest
- The ByteBuf to serialize toCopyright © 2023 The Apache Software Foundation. All rights reserved.