public class SaslTokenMessageRequest extends WritableRequest
conf, UNKNOWN_SIZE
Constructor and Description |
---|
SaslTokenMessageRequest()
Constructor used for reflection only.
|
SaslTokenMessageRequest(byte[] token)
Constructor used to send request.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getSaslToken()
Read accessor for SASL token
|
int |
getSerializedSize()
Get the size of the request in serialized form.
|
RequestType |
getType()
Get the type of the request
|
void |
processToken(SaslNettyServer saslNettyServer)
Update server's token in response to the SASL token received from
client.
|
void |
readFieldsRequest(DataInput input)
Serialize the request
|
void |
setSaslToken(byte[] token)
Write accessor for SASL token
|
void |
writeRequest(DataOutput output)
Deserialize the request
|
getClientId, getConf, getRequestId, readFields, setClientId, setConf, setRequestId, write
public SaslTokenMessageRequest()
public SaslTokenMessageRequest(byte[] token)
token
- the SASL token, generated by a SaslClient or SaslServer.public byte[] getSaslToken()
public void setSaslToken(byte[] token)
token
- SASL tokenpublic RequestType getType()
WritableRequest
getType
in class WritableRequest
public void readFieldsRequest(DataInput input) throws IOException
WritableRequest
input
- Input to read fields fromIOException
public void processToken(SaslNettyServer saslNettyServer)
saslNettyServer
- used to create response.public void writeRequest(DataOutput output) throws IOException
WritableRequest
output
- Output to write the request toIOException
public int getSerializedSize()
WritableRequest
getSerializedSize
in class WritableRequest
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.