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 |
---|---|
org.jboss.netty.buffer.ChannelBuffer |
buffer()
encode the current SaslToken Message into a channel buffer SaslTokenMessageRequest is encoded as: identifier ….
|
int |
encodeLength() |
byte[] |
getSaslToken()
Read accessor for SASL token
|
static SaslMessageToken |
read(byte[] serial) |
void |
setSaslToken(byte[] token)
Write accessor for SASL token
|
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 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 INettySerializable
public org.jboss.netty.buffer.ChannelBuffer buffer() throws IOException
encode the current SaslToken Message into a channel buffer SaslTokenMessageRequest is encoded as: identifier …. short(2) payload length …. int payload …. byte[]
buffer
in interface INettySerializable
IOException
public static SaslMessageToken read(byte[] serial)
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.