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, writepublic 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()
WritableRequestgetType in class WritableRequestpublic void readFieldsRequest(DataInput input) throws IOException
WritableRequestinput - Input to read fields fromIOExceptionpublic void processToken(SaslNettyServer saslNettyServer)
saslNettyServer - used to create response.public void writeRequest(DataOutput output) throws IOException
WritableRequestoutput - Output to write the request toIOExceptionpublic int getSerializedSize()
WritableRequestgetSerializedSize in class WritableRequestCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.