public static class MPv3.HeaderData extends Object implements BERSerializable
HeaderData represents the message header information
of SNMPv3 message.| Modifier and Type | Field and Description |
|---|---|
static byte |
FLAG_AUTH |
static byte |
FLAG_PRIV |
| Constructor and Description |
|---|
MPv3.HeaderData() |
| Modifier and Type | Method and Description |
|---|---|
void |
decodeBER(BERInputStream message)
Decodes a
Variable from an InputStream. |
void |
encodeBER(OutputStream outputStream)
Encodes a
Variable to an OutputStream. |
int |
getBERLength()
Returns the length of this
BERSerializable object
in bytes when encoded according to the Basic Encoding Rules (BER). |
int |
getBERPayloadLength()
Returns the length of the payload of this
BERSerializable object
in bytes when encoded according to the Basic Encoding Rules (BER). |
int |
getMsgFlags() |
int |
getMsgID() |
int |
getMsgMaxSize() |
int |
getSecurityModel() |
void |
setMsgFlags(int flags) |
void |
setMsgID(int msgID) |
void |
setMsgMaxSize(int msgMaxSize) |
void |
setSecurityModel(int model) |
public static final byte FLAG_AUTH
public static final byte FLAG_PRIV
public void setMsgID(int msgID)
public int getMsgID()
public void setMsgMaxSize(int msgMaxSize)
public int getMsgMaxSize()
public void setMsgFlags(int flags)
public int getMsgFlags()
public void setSecurityModel(int model)
public int getSecurityModel()
public int getBERPayloadLength()
BERSerializableBERSerializable object
in bytes when encoded according to the Basic Encoding Rules (BER).getBERPayloadLength in interface BERSerializablepublic int getBERLength()
BERSerializableBERSerializable object
in bytes when encoded according to the Basic Encoding Rules (BER).getBERLength in interface BERSerializablepublic void decodeBER(BERInputStream message) throws IOException
BERSerializableVariable from an InputStream.decodeBER in interface BERSerializablemessage - an InputStream containing a BER encoded byte stream.IOException - if the stream could not be decoded by using BER rules.public void encodeBER(OutputStream outputStream) throws IOException
BERSerializableVariable to an OutputStream.encodeBER in interface BERSerializableoutputStream - an OutputStream.IOException - if an error occurs while writing to the stream.Copyright © 2016 SNMP4J.org. All Rights Reserved.