- java.lang.Object
-
- org.snmp4j.mp.MPv3.HeaderData
-
- All Implemented Interfaces:
BERSerializable
- Enclosing class:
- MPv3
public static class MPv3.HeaderData extends java.lang.Object implements BERSerializable
TheHeaderDatarepresents the message header information of SNMPv3 message.- Version:
- 1.0
- Author:
- Frank Fock
-
-
Constructor Summary
Constructors Constructor Description HeaderData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecodeBER(BERInputStream message)Decodes aVariablefrom anInputStream.voidencodeBER(java.io.OutputStream outputStream)Encodes aVariableto anOutputStream.intgetBERLength()Returns the length of thisBERSerializableobject in bytes when encoded according to the Basic Encoding Rules (BER).intgetBERPayloadLength()Returns the length of the payload of thisBERSerializableobject in bytes when encoded according to the Basic Encoding Rules (BER).intgetMsgFlags()intgetMsgID()intgetMsgMaxSize()intgetSecurityModel()voidsetMsgFlags(int flags)voidsetMsgID(int msgID)voidsetMsgMaxSize(int msgMaxSize)voidsetSecurityModel(int model)
-
-
-
Field Detail
-
FLAG_AUTH
public static final byte FLAG_AUTH
- See Also:
- Constant Field Values
-
FLAG_PRIV
public static final byte FLAG_PRIV
- See Also:
- Constant Field Values
-
-
Method Detail
-
setMsgID
public void setMsgID(int msgID)
-
getMsgID
public int getMsgID()
-
setMsgMaxSize
public void setMsgMaxSize(int msgMaxSize)
-
getMsgMaxSize
public int getMsgMaxSize()
-
setMsgFlags
public void setMsgFlags(int flags)
-
getMsgFlags
public int getMsgFlags()
-
setSecurityModel
public void setSecurityModel(int model)
-
getSecurityModel
public int getSecurityModel()
-
getBERPayloadLength
public int getBERPayloadLength()
Description copied from interface:BERSerializableReturns the length of the payload of thisBERSerializableobject in bytes when encoded according to the Basic Encoding Rules (BER).- Specified by:
getBERPayloadLengthin interfaceBERSerializable- Returns:
- the BER encoded length of this variable.
-
getBERLength
public int getBERLength()
Description copied from interface:BERSerializableReturns the length of thisBERSerializableobject in bytes when encoded according to the Basic Encoding Rules (BER).- Specified by:
getBERLengthin interfaceBERSerializable- Returns:
- the BER encoded length of this variable.
-
decodeBER
public void decodeBER(BERInputStream message) throws java.io.IOException
Description copied from interface:BERSerializableDecodes aVariablefrom anInputStream.- Specified by:
decodeBERin interfaceBERSerializable- Parameters:
message- anInputStreamcontaining a BER encoded byte stream.- Throws:
java.io.IOException- if the stream could not be decoded by using BER rules.
-
encodeBER
public void encodeBER(java.io.OutputStream outputStream) throws java.io.IOExceptionDescription copied from interface:BERSerializableEncodes aVariableto anOutputStream.- Specified by:
encodeBERin interfaceBERSerializable- Parameters:
outputStream- anOutputStream.- Throws:
java.io.IOException- if an error occurs while writing to the stream.
-
-