java.lang.Object
org.snmp4j.AbstractTarget<A>
org.snmp4j.SecureTarget<A>
org.snmp4j.CertifiedTarget<A>
org.snmp4j.transport.tls.TlsX509CertifiedTarget<A>
- All Implemented Interfaces:
Serializable
,Cloneable
,CertifiedIdentity
,Target<A>
The
TlsCertifiedTarget
extends the CertifiedTarget
class by means to provide
a TlsTmSecurityCallback
reference directly with the target as needed according to RFC 6353 ยง5.3.1 when
establishing a connection based on the SNMP-TARGET-MIB as client. If the provided TlsTmSecurityCallback
is null
this class behaves identical to its superclass CertifiedTarget
.- Since:
- 3.3.0
- Author:
- Frank Fock
- See Also:
-
Field Summary
Fields inherited from class org.snmp4j.AbstractTarget
securityLevel, securityModel, securityName
-
Constructor Summary
ConstructorDescriptionTlsX509CertifiedTarget
(A address, OctetString identity, OctetString serverFingerprint, OctetString clientFingerprint, TlsTmSecurityCallback<X509Certificate> tlsTmSecurityCallback) -
Method Summary
Modifier and TypeMethodDescriptionCreates a new copy of this target with the same address type.Gets theTlsTmSecurityCallback
information needed to validate a client-server connection.Methods inherited from class org.snmp4j.CertifiedTarget
getClientFingerprint, getIdentity, getServerFingerprint, toString
Methods inherited from class org.snmp4j.AbstractTarget
clone, equals, getAddress, getMaxSizeRequestPDU, getPreferredTransports, getRetries, getSecurityLevel, getSecurityModel, getSecurityName, getTimeout, getVersion, hashCode, setAddress, setMaxSizeRequestPDU, setPreferredTransports, setRetries, setSecurityLevel, setSecurityModel, setSecurityName, setTimeout, setVersion, toStringAbstractTarget
-
Constructor Details
-
TlsX509CertifiedTarget
public TlsX509CertifiedTarget(A address, OctetString identity, OctetString serverFingerprint, OctetString clientFingerprint, TlsTmSecurityCallback<X509Certificate> tlsTmSecurityCallback)
-
-
Method Details
-
getTlsTmSecurityCallback
Gets theTlsTmSecurityCallback
information needed to validate a client-server connection.- Returns:
- a
TlsTmSecurityCallback
instance ornull
if such information is not provided then the transport mapping has to block (drop) the connection creation.
-
duplicate
Description copied from interface:Target
Creates a new copy of this target with the same address type.
-