public class SaslHeader extends Header
Modifier and Type | Class and Description |
---|---|
static class |
SaslHeader.Type |
Constructor and Description |
---|
SaslHeader() |
SaslHeader(SaslHeader.Type type,
byte[] payload) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getPayload() |
SaslHeader.Type |
getType() |
SaslHeader |
payload(byte[] payload) |
void |
readFrom(java.io.DataInput in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
void |
setPayload(byte[] payload) |
void |
setType(SaslHeader.Type type) |
int |
size()
To be implemented by subclasses.
|
byte[] |
token() |
java.lang.String |
toString() |
SaslHeader |
type(SaslHeader.Type type) |
void |
writeTo(java.io.DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
public SaslHeader()
public SaslHeader(SaslHeader.Type type, byte[] payload)
public byte[] getPayload()
public void setPayload(byte[] payload)
public SaslHeader.Type getType()
public void setType(SaslHeader.Type type)
public SaslHeader payload(byte[] payload)
public byte[] token()
public SaslHeader type(SaslHeader.Type type)
public void writeTo(java.io.DataOutput out) throws java.lang.Exception
Streamable
java.lang.Exception
public void readFrom(java.io.DataInput in) throws java.lang.Exception
Streamable
java.lang.Exception
public int size()
Header
Copyright © 1998-2020 Red Hat. All Rights Reserved.