Uses of Class
org.snmp4j.TransportStateReference
-
Packages that use TransportStateReference Package Description org.snmp4j Provides classes and interfaces for creating, sending, and receiving SNMP messages.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.tools.console org.snmp4j.transport Provides transport protocol mappings for SNMP.org.snmp4j.transport.tls org.snmp4j.util Contains table retrieval utilities and multi-threading support classes as well as miscellaneous utility classes. -
-
Uses of TransportStateReference in org.snmp4j
Fields in org.snmp4j declared as TransportStateReference Modifier and Type Field Description private TransportStateReference
CommandResponderEvent. tmStateReference
Methods in org.snmp4j that return TransportStateReference Modifier and Type Method Description TransportStateReference
CommandResponderEvent. getTmStateReference()
Gets the transport model state reference as defined by RFC 5590.Methods in org.snmp4j with parameters of type TransportStateReference Modifier and Type Method Description protected <A extends Address>
voidMessageDispatcherImpl. dispatchMessage(TransportMapping<? super A> sourceTransport, MessageProcessingModel mp, A incomingAddress, BERInputStream wholeMessage, TransportStateReference tmStateReference)
Actually decodes and dispatches an incoming SNMP message using the supplied message processing model.static boolean
TransportStateReference. hasCertifiedIdentity(TransportStateReference transportStateReference)
Check if the givenTransportStateReference
hasCertifiedIdentity
information.<A extends Address>
voidMessageDispatcher. processMessage(TransportMapping<? super A> sourceTransport, A incomingAddress, java.nio.ByteBuffer wholeMessage, TransportStateReference tmStateReference)
Process an incoming SNMP message.<A extends Address>
voidMessageDispatcherImpl. processMessage(TransportMapping<? super A> sourceTransport, A incomingAddress, java.nio.ByteBuffer wholeMessage, TransportStateReference tmStateReference)
<A extends Address>
voidMessageDispatcherImpl. processMessage(TransportMapping<? super A> sourceTransport, A incomingAddress, BERInputStream wholeMessage, TransportStateReference tmStateReference)
protected <A extends Address>
voidMessageDispatcherImpl. sendMessage(TransportMapping<? super A> transport, A destAddress, byte[] message, TransportStateReference tmStateReference, long timeoutMillis, int maxRetries)
Sends a message using theTransportMapping
that has been assigned for the supplied address type.void
TransportMapping. sendMessage(A address, byte[] message, TransportStateReference tmStateReference, long timeoutMillis, int maxRetries)
Sends a message to the supplied address using this transport.void
CommandResponderEvent. setTmStateReference(TransportStateReference tmStateReference)
Sets the transport model state reference as defined by RFC 5590. -
Uses of TransportStateReference in org.snmp4j.mp
Methods in org.snmp4j.mp with parameters of type TransportStateReference Modifier and Type Method Description <A extends Address>
intMessageProcessingModel. prepareDataElements(MessageDispatcher messageDispatcher, A transportAddress, BERInputStream wholeMsg, TransportStateReference tmStateReference, Integer32 messageProcessingModel, Integer32 securityModel, OctetString securityName, Integer32 securityLevel, MutablePDU pdu, PduHandle sendPduHandle, Integer32 maxSizeResponseScopedPDU, StatusInformation statusInformation, MutableStateReference<A> mutableStateReference)
Prepare data elements from an incoming SNMP message as described in RFC3412 §7.2.<A extends Address>
intMPv1. prepareDataElements(MessageDispatcher messageDispatcher, A transportAddress, BERInputStream wholeMsg, TransportStateReference tmStateReference, Integer32 messageProcessingModel, Integer32 securityModel, OctetString securityName, Integer32 securityLevel, MutablePDU pdu, PduHandle sendPduHandle, Integer32 maxSizeResponseScopedPDU, StatusInformation statusInformation, MutableStateReference<A> mutableStateReference)
<A extends Address>
intMPv2c. prepareDataElements(MessageDispatcher messageDispatcher, A transportAddress, BERInputStream wholeMsg, TransportStateReference tmStateReference, Integer32 messageProcessingModel, Integer32 securityModel, OctetString securityName, Integer32 securityLevel, MutablePDU pdu, PduHandle sendPduHandle, Integer32 maxSizeResponseScopedPDU, StatusInformation statusInformation, MutableStateReference<A> mutableStateReference)
<A extends Address>
intMPv3. prepareDataElements(MessageDispatcher messageDispatcher, A transportAddress, BERInputStream wholeMsg, TransportStateReference tmStateReference, Integer32 messageProcessingModel, Integer32 securityModel, OctetString securityName, Integer32 securityLevel, MutablePDU pdu, PduHandle sendPduHandle, Integer32 maxSizeResponseScopedPDU, StatusInformation statusInformation, MutableStateReference<A> mutableStateReference)
<A extends Address>
intMessageProcessingModel. prepareOutgoingMessage(A transportAddress, int maxMsgSize, int messageProcessingModel, int securityModel, byte[] securityName, int securityLevel, PDU pdu, boolean expectResponse, PduHandle sendPduHandle, BEROutputStream outgoingMessage, TransportStateReference tmStateReference)
Prepares an outgoing message as defined in RFC3412 §7.1.<A extends Address>
intMPv1. prepareOutgoingMessage(A transportAddress, int maxMessageSize, int messageProcessingModel, int securityModel, byte[] securityName, int securityLevel, PDU pdu, boolean expectResponse, PduHandle sendPduHandle, BEROutputStream outgoingMessage, TransportStateReference tmStateReference)
<A extends Address>
intMPv2c. prepareOutgoingMessage(A transportAddress, int maxMessageSize, int messageProcessingModel, int securityModel, byte[] securityName, int securityLevel, PDU pdu, boolean expectResponse, PduHandle sendPduHandle, BEROutputStream outgoingMessage, TransportStateReference tmStateReference)
<A extends Address>
intMPv3. prepareOutgoingMessage(A transportAddress, int maxMessageSize, int messageProcessingModel, int securityModel, byte[] securityName, int securityLevel, PDU pdu, boolean expectResponse, PduHandle sendPduHandle, BEROutputStream outgoingMessage, TransportStateReference tmStateReference)
-
Uses of TransportStateReference in org.snmp4j.security
Fields in org.snmp4j.security declared as TransportStateReference Modifier and Type Field Description private TransportStateReference
TsmSecurityStateReference. tmStateReference
Methods in org.snmp4j.security that return TransportStateReference Modifier and Type Method Description TransportStateReference
TsmSecurityStateReference. getTmStateReference()
Methods in org.snmp4j.security with parameters of type TransportStateReference Modifier and Type Method Description private int
TSM. generateMessage(int messageProcessingModel, byte[] globalData, int maxMessageSize, int securityModel, byte[] securityEngineID, byte[] securityName, int securityLevel, BERInputStream scopedPDU, SecurityStateReference securityStateReference, SecurityParameters securityParameters, BEROutputStream wholeMsg, TransportStateReference tmStateReference)
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, SecurityStateReference securityStateReference)
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, SecurityStateReference securityStateReference)
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, SecurityStateReference securityStateReference)
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)
void
TsmSecurityStateReference. setTmStateReference(TransportStateReference tmStateReference)
-
Uses of TransportStateReference in org.snmp4j.tools.console
Methods in org.snmp4j.tools.console with parameters of type TransportStateReference Modifier and Type Method Description <A extends Address>
voidSnmpCommand. processMessage(TransportMapping<? super A> sourceTransport, A incomingAddress, java.nio.ByteBuffer wholeMessage, TransportStateReference tmStateReference)
<A extends Address>
voidSnmpCommand.SnmpCommandMessageDispatcher. processMessage(TransportMapping<? super A> sourceTransport, A incomingAddress, java.nio.ByteBuffer wholeMessage, TransportStateReference tmStateReference)
protected <A extends Address>
voidSnmpCommand.SnmpCommandMessageDispatcher. sendMessage(TransportMapping<? super A> transport, A destAddress, byte[] message, TransportStateReference tmStateReference, long timeoutMillis, int maxRetries)
-
Uses of TransportStateReference in org.snmp4j.transport
Fields in org.snmp4j.transport declared as TransportStateReference Modifier and Type Field Description private TransportStateReference
DTLSTM.SocketEntry. tmStateReference
private TransportStateReference
TLSTM.SocketEntry. tmStateReference
Methods in org.snmp4j.transport with parameters of type TransportStateReference Modifier and Type Method Description void
DTLSTM.SocketEntry. checkTransportStateReference(TransportStateReference tmStateReference)
javax.net.ssl.X509TrustManager
DTLSTM.DefaultDTLSTMTrustManagerFactory. create(javax.net.ssl.X509TrustManager trustManager, boolean useClientMode, TransportStateReference tmStateReference)
javax.net.ssl.X509TrustManager
TLSTM.DefaultTLSTMTrustManagerFactory. create(javax.net.ssl.X509TrustManager trustManager, boolean useClientMode, TransportStateReference tmStateReference)
private void
TLSTM.ServerThread. dispatchMessage(TcpAddress incomingAddress, java.nio.ByteBuffer byteBuffer, long bytesRead, java.lang.Object sessionID, TransportStateReference tmStateReference)
protected void
AbstractTransportMapping. fireProcessMessage(A address, java.nio.ByteBuffer buf, TransportStateReference tmStateReference)
protected void
DefaultUdpTransportMapping. fireProcessMessage(java.net.DatagramPacket packet, java.nio.ByteBuffer bis, TransportStateReference stateReference)
protected void
DTLSTM. fireProcessMessage(java.net.DatagramPacket packet, java.nio.ByteBuffer bis, TransportStateReference stateReference)
protected void
AbstractTransportMapping. handleDroppedMessageToSend(A address, byte[] message, TransportStateReference transportStateReference, long timeoutMillis, int maxRetries)
Handle a message that could not be send to the specified address, because there is no server socket for receiving responses.private boolean
TLSTM. matchingStateReferences(TransportStateReference tmStateReferenceNew, TransportStateReference tmStateReferenceExisting)
protected java.nio.ByteBuffer
DefaultUdpTransportMapping. prepareInPacket(java.net.DatagramPacket packet, byte[] buf, TransportStateReference tmStateReference)
Prepare an network packet for the application.protected java.nio.ByteBuffer
DTLSTM. prepareInPacket(java.net.DatagramPacket packet, byte[] buf, TransportStateReference tmStateReference)
protected java.util.List<java.net.DatagramPacket>
DefaultUdpTransportMapping. prepareOutPackets(UdpAddress targetAddress, byte[] message, TransportStateReference tmStateReference, java.net.DatagramSocket socket, long timeoutMillis, int maxRetries)
Prepare an application message for sending over the network to the specified target address.protected java.util.List<java.net.DatagramPacket>
DTLSTM. prepareOutPackets(UdpAddress targetAddress, byte[] message, TransportStateReference tmStateReference, java.net.DatagramSocket socket, long timeoutMillis, int maxRetries)
<A extends Address>
voidTransportListener. processMessage(TransportMapping<? super A> sourceTransport, A incomingAddress, java.nio.ByteBuffer wholeMessage, TransportStateReference tmStateReference)
Processes an incoming message.abstract void
AbstractTransportMapping. sendMessage(A address, byte[] message, TransportStateReference tmStateReference, long timeoutMillis, int maxRetries)
Sends a message to the supplied address using this transport.void
DefaultTcpTransportMapping. sendMessage(TcpAddress address, byte[] message, TransportStateReference tmStateReference, long timeoutMillis, int maxRetries)
Sends a SNMP message to the supplied address.void
DefaultTcpTransportMapping.ServerThread. sendMessage(Address address, byte[] message, TransportStateReference tmStateReference)
void
DefaultUdpTransportMapping. sendMessage(UdpAddress targetAddress, byte[] message, TransportStateReference tmStateReference, long timeoutMillis, int maxRetries)
void
DummyTransport.DummyTransportResponder. sendMessage(A address, byte[] message, TransportStateReference tmStateReference, long timeoutMillis, int retries)
void
DummyTransport. sendMessage(A address, byte[] message, TransportStateReference tmStateReference, long timeoutMillis, int retries)
abstract void
TcpTransportMapping. sendMessage(TcpAddress address, byte[] message, TransportStateReference tmStateReference, long timeoutMillis, int maxRetries)
void
TLSTM. sendMessage(TcpAddress address, byte[] message, TransportStateReference tmStateReference, long timeoutMillis, int maxRetries)
Sends an SNMP message to the supplied address.void
TLSTM.ServerThread. sendMessage(Address address, byte[] message, TransportStateReference tmStateReference)
abstract void
UdpTransportMapping. sendMessage(UdpAddress address, byte[] message, TransportStateReference tmStateReference, long timeoutMillis, int maxRetries)
Constructors in org.snmp4j.transport with parameters of type TransportStateReference Constructor Description SocketEntry(UdpAddress address, boolean useClientMode, TransportStateReference tmStateReference)
SocketEntry(TcpAddress address, java.net.Socket socket, boolean useClientMode, TransportStateReference tmStateReference)
-
Uses of TransportStateReference in org.snmp4j.transport.tls
Fields in org.snmp4j.transport.tls declared as TransportStateReference Modifier and Type Field Description private TransportStateReference
TLSTMExtendedTrustManager. tmStateReference
private TransportStateReference
TlsTrustManager. tmStateReference
Deprecated.Methods in org.snmp4j.transport.tls with parameters of type TransportStateReference Modifier and Type Method Description javax.net.ssl.X509TrustManager
TLSTMExtendedTrustManagerFactory. create(javax.net.ssl.X509TrustManager trustManager, boolean useClientMode, TransportStateReference tmStateReference)
javax.net.ssl.X509TrustManager
TLSTMTrustManagerFactory. create(javax.net.ssl.X509TrustManager trustManager, boolean useClientMode, TransportStateReference tmStateReference)
static javax.net.ssl.SSLContext
TLSTMUtil. createSSLContext(java.lang.String protocol, java.lang.String keyStore, java.lang.String keyStorePassword, java.lang.String trustStore, java.lang.String trustStorePassword, TransportStateReference transportStateReference, TLSTMTrustManagerFactory trustManagerFactory, boolean useClientMode, TlsTmSecurityCallback<java.security.cert.X509Certificate> securityCallback, java.lang.String localCertificateAlias, java.security.cert.PKIXRevocationChecker pkixRevocationChecker, java.lang.String crlURI)
private static void
TLSTMUtil. filterCertificates(java.security.KeyStore ks, TransportStateReference transportStateReference, TlsTmSecurityCallback<java.security.cert.X509Certificate> securityCallback, java.lang.String localCertificateAlias)
javax.net.ssl.SSLContext
DefaultSSLEngineConfiguration. getSSLContext(boolean useClientMode, TransportStateReference transportStateReference)
javax.net.ssl.SSLContext
SSLEngineConfigurator. getSSLContext(boolean useClientMode, TransportStateReference transportStateReference)
Gets the SSLContext for this SSL connection.Constructors in org.snmp4j.transport.tls with parameters of type TransportStateReference Constructor Description TLSTMExtendedTrustManager(CounterSupport tlstmCounters, TlsTmSecurityCallback<java.security.cert.X509Certificate> securityCallback, javax.net.ssl.X509TrustManager trustManager, boolean useClientMode, TransportStateReference tmStateReference)
TlsTrustManager(javax.net.ssl.X509TrustManager trustManager, boolean useClientMode, TransportStateReference tmStateReference, CounterSupport tlstmCounters, TlsTmSecurityCallback<java.security.cert.X509Certificate> securityCallback)
Deprecated.Creates a newTlsTrustManager
. -
Uses of TransportStateReference in org.snmp4j.util
Fields in org.snmp4j.util declared as TransportStateReference Modifier and Type Field Description private TransportStateReference
MultiThreadedMessageDispatcher.MessageTask. tmStateReference
Methods in org.snmp4j.util with parameters of type TransportStateReference Modifier and Type Method Description <A extends Address>
voidMultiThreadedMessageDispatcher. processMessage(TransportMapping<? super A> sourceTransport, A incomingAddress, java.nio.ByteBuffer wholeMessage, TransportStateReference tmStateReference)
Constructors in org.snmp4j.util with parameters of type TransportStateReference Constructor Description MessageTask(TransportMapping<? super A> sourceTransport, A incomingAddress, java.nio.ByteBuffer wholeMessage, TransportStateReference tmStateReference)
-