Package | Description |
---|---|
org.snmp4j |
Provides classes and interfaces for creating, sending, and receiving SNMP
messages.
|
org.snmp4j.asn1 |
Provides classes and interfaces
for the mapping between Abstract Syntax Notation One (ASN.1)
formatted values and their transfer syntax according to the Basic Encoding Rules
(BER).
|
org.snmp4j.event |
Provides classes and interfaces for SNMP4J event processing.
|
org.snmp4j.mp |
Provides classes and interfaces for the SNMP message processing.
|
org.snmp4j.security |
Provides classes and interfaces for authentication and privacy of SNMP(v3)
messages.
|
org.snmp4j.smi |
Provides classes for the representation of SMIv1/v2 data types (which also
includes some basic ASN.1 primitive data types).
|
Modifier and Type | Method | Description |
---|---|---|
void |
PDU.decodeBER(BERInputStream inputStream) |
|
void |
PDUv1.decodeBER(BERInputStream inputStream) |
Decodes a
Variable from an BERInputStream . |
void |
ScopedPDU.decodeBER(BERInputStream inputStream) |
Decodes a
ScopedPDU from an InputStream . |
static java.util.ArrayList<VariableBinding> |
PDU.decodeVariableBindings(BERInputStream inputStream) |
|
protected void |
MessageDispatcherImpl.dispatchMessage(TransportMapping sourceTransport,
MessageProcessingModel mp,
Address incomingAddress,
BERInputStream wholeMessage,
TransportStateReference tmStateReference) |
Actually decodes and dispatches an incoming SNMP message using the supplied
message processing model.
|
void |
MessageDispatcherImpl.processMessage(TransportMapping sourceTransport,
Address incomingAddress,
BERInputStream wholeMessage,
TransportStateReference tmStateReference) |
Modifier and Type | Method | Description |
---|---|---|
void |
BERSerializable.decodeBER(BERInputStream inputStream) |
Decodes a
Variable from an InputStream . |
static java.math.BigInteger |
BER.decodeBigInteger(BERInputStream is,
BER.MutableByte type) |
|
static int |
BER.decodeHeader(BERInputStream is,
BER.MutableByte type) |
Decodes an ASN.1 header for an object with the ID and
length specified.
|
static int |
BER.decodeHeader(BERInputStream is,
BER.MutableByte type,
boolean checkLength) |
Decodes an ASN.1 header for an object with the ID and
length specified.
|
static int |
BER.decodeInteger(BERInputStream is,
BER.MutableByte type) |
|
static int |
BER.decodeLength(BERInputStream is) |
Decodes a ASN.1 length.
|
static int |
BER.decodeLength(BERInputStream is,
boolean checkLength) |
Decodes a ASN.1 length.
|
static void |
BER.decodeNull(BERInputStream is,
BER.MutableByte type) |
|
static int[] |
BER.decodeOID(BERInputStream is,
BER.MutableByte type) |
|
static byte[] |
BER.decodeString(BERInputStream is,
BER.MutableByte type) |
|
static long |
BER.decodeUnsignedInt64(BERInputStream is,
BER.MutableByte type) |
|
static long |
BER.decodeUnsignedInteger(BERInputStream is,
BER.MutableByte type) |
|
static java.lang.String |
BER.getPositionMessage(BERInputStream is) |
Modifier and Type | Method | Description |
---|---|---|
BERInputStream |
AuthenticationFailureEvent.getMessage() |
Returns the message received.
|
Constructor | Description |
---|---|
AuthenticationFailureEvent(TransportListener source,
Address sourceAddress,
TransportMapping transport,
int error,
BERInputStream message) |
Creates an authentication failure event.
|
Modifier and Type | Method | Description |
---|---|---|
void |
MPv3.HeaderData.decodeBER(BERInputStream message) |
|
int |
MessageProcessingModel.prepareDataElements(MessageDispatcher messageDispatcher,
Address transportAddress,
BERInputStream wholeMsg,
TransportStateReference tmStateReference,
Integer32 messageProcessingModel,
Integer32 securityModel,
OctetString securityName,
Integer32 securityLevel,
MutablePDU pdu,
PduHandle sendPduHandle,
Integer32 maxSizeResponseScopedPDU,
StatusInformation statusInformation,
MutableStateReference mutableStateReference) |
Prepare data elements from an incoming SNMP message as described in
RFC3412 ยง7.2.
|
int |
MPv1.prepareDataElements(MessageDispatcher messageDispatcher,
Address transportAddress,
BERInputStream wholeMsg,
TransportStateReference tmStateReference,
Integer32 messageProcessingModel,
Integer32 securityModel,
OctetString securityName,
Integer32 securityLevel,
MutablePDU pdu,
PduHandle sendPduHandle,
Integer32 maxSizeResponseScopedPDU,
StatusInformation statusInformation,
MutableStateReference mutableStateReference) |
|
int |
MPv2c.prepareDataElements(MessageDispatcher messageDispatcher,
Address transportAddress,
BERInputStream wholeMsg,
TransportStateReference tmStateReference,
Integer32 messageProcessingModel,
Integer32 securityModel,
OctetString securityName,
Integer32 securityLevel,
MutablePDU pdu,
PduHandle sendPduHandle,
Integer32 maxSizeResponseScopedPDU,
StatusInformation statusInformation,
MutableStateReference mutableStateReference) |
|
int |
MPv3.prepareDataElements(MessageDispatcher messageDispatcher,
Address transportAddress,
BERInputStream wholeMsg,
TransportStateReference tmStateReference,
Integer32 messageProcessingModel,
Integer32 securityModel,
OctetString securityName,
Integer32 securityLevel,
MutablePDU pdu,
PduHandle sendPduHandle,
Integer32 maxSizeResponseScopedPDU,
StatusInformation statusInformation,
MutableStateReference mutableStateReference) |
Modifier and Type | Method | Description |
---|---|---|
protected static byte[] |
SNMPv3SecurityModel.buildMessageBuffer(BERInputStream scopedPDU) |
|
void |
TsmSecurityParameters.decodeBER(BERInputStream inputStream) |
|
void |
UsmSecurityParameters.decodeBER(BERInputStream inputStream) |
|
int |
SecurityModel.generateRequestMessage(int messageProcessingModel,
byte[] globalData,
int maxMessageSize,
int securityModel,
byte[] securityEngineID,
byte[] securityName,
int securityLevel,
BERInputStream scopedPDU,
SecurityParameters securityParameters,
BEROutputStream wholeMsg,
TransportStateReference tmStateReference) |
Generate a request message.
|
int |
TSM.generateRequestMessage(int messageProcessingModel,
byte[] globalData,
int maxMessageSize,
int securityModel,
byte[] securityEngineID,
byte[] securityName,
int securityLevel,
BERInputStream scopedPDU,
SecurityParameters securityParameters,
BEROutputStream wholeMsg,
TransportStateReference tmStateReference) |
|
int |
USM.generateRequestMessage(int snmpVersion,
byte[] globalData,
int maxMessageSize,
int securityModel,
byte[] securityEngineID,
byte[] securityName,
int securityLevel,
BERInputStream scopedPDU,
SecurityParameters securityParameters,
BEROutputStream wholeMsg,
TransportStateReference tmStateReference) |
|
int |
SecurityModel.generateResponseMessage(int messageProcessingModel,
byte[] globalData,
int maxMessageSize,
int securityModel,
byte[] securityEngineID,
byte[] securityName,
int securityLevel,
BERInputStream scopedPDU,
SecurityStateReference securityStateReference,
SecurityParameters securityParameters,
BEROutputStream wholeMsg) |
Generates a response message.
|
int |
TSM.generateResponseMessage(int messageProcessingModel,
byte[] globalData,
int maxMessageSize,
int securityModel,
byte[] securityEngineID,
byte[] securityName,
int securityLevel,
BERInputStream scopedPDU,
SecurityStateReference securityStateReference,
SecurityParameters securityParameters,
BEROutputStream wholeMsg) |
|
int |
USM.generateResponseMessage(int snmpVersion,
byte[] globalData,
int maxMessageSize,
int securityModel,
byte[] securityEngineID,
byte[] securityName,
int securityLevel,
BERInputStream scopedPDU,
SecurityStateReference securityStateReference,
SecurityParameters securityParameters,
BEROutputStream wholeMsg) |
|
int |
SecurityModel.processIncomingMsg(int messageProcessingModel,
int maxMessageSize,
SecurityParameters securityParameters,
SecurityModel securityModel,
int securityLevel,
BERInputStream wholeMsg,
TransportStateReference tmStateReference,
OctetString securityEngineID,
OctetString securityName,
BEROutputStream scopedPDU,
Integer32 maxSizeResponseScopedPDU,
SecurityStateReference securityStateReference,
StatusInformation statusInfo) |
Processes an incoming message and returns its plaintext payload.
|
int |
TSM.processIncomingMsg(int messageProcessingModel,
int maxMessageSize,
SecurityParameters securityParameters,
SecurityModel securityModel,
int securityLevel,
BERInputStream wholeMsg,
TransportStateReference tmStateReference,
OctetString securityEngineID,
OctetString securityName,
BEROutputStream scopedPDU,
Integer32 maxSizeResponseScopedPDU,
SecurityStateReference securityStateReference,
StatusInformation statusInfo) |
|
int |
USM.processIncomingMsg(int snmpVersion,
int maxMessageSize,
SecurityParameters securityParameters,
SecurityModel securityModel,
int securityLevel,
BERInputStream wholeMsg,
TransportStateReference tmStateReference,
OctetString securityEngineID,
OctetString securityName,
BEROutputStream scopedPDU,
Integer32 maxSizeResponseScopedPDU,
SecurityStateReference securityStateReference,
StatusInformation statusInfo) |
Modifier and Type | Method | Description |
---|---|---|
static Variable |
AbstractVariable.createFromBER(BERInputStream inputStream) |
Creates a
Variable from a BER encoded BERInputStream . |
abstract void |
AbstractVariable.decodeBER(BERInputStream inputStream) |
Decodes a
Variable from an BERInputStream . |
void |
BitString.decodeBER(BERInputStream inputStream) |
|
void |
Counter32.decodeBER(BERInputStream inputStream) |
|
void |
Counter64.decodeBER(BERInputStream inputStream) |
|
void |
GenericAddress.decodeBER(BERInputStream inputStream) |
|
void |
Integer32.decodeBER(BERInputStream inputStream) |
|
void |
IpAddress.decodeBER(BERInputStream inputStream) |
|
void |
Null.decodeBER(BERInputStream inputStream) |
|
void |
OctetString.decodeBER(BERInputStream inputStream) |
|
void |
OID.decodeBER(BERInputStream inputStream) |
|
void |
Opaque.decodeBER(BERInputStream inputStream) |
|
void |
TimeTicks.decodeBER(BERInputStream inputStream) |
|
void |
TransportIpAddress.decodeBER(BERInputStream inputStream) |
|
void |
UnsignedInteger32.decodeBER(BERInputStream inputStream) |
|
void |
VariableBinding.decodeBER(BERInputStream inputStream) |
|
void |
VariantVariable.decodeBER(BERInputStream inputStream) |
Copyright © 2018 SNMP4J.org. All rights reserved.