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(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() |
String |
toString() |
SaslHeader |
type(SaslHeader.Type type) |
void |
writeTo(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(DataOutput out) throws Exception
Streamable
Exception
public void readFrom(DataInput in) throws Exception
Streamable
Exception
public int size()
Header
Copyright © 2021 JBoss, a division of Red Hat. All rights reserved.