Class TlsX509CertifiedTarget<A extends Address>

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>

public class TlsX509CertifiedTarget<A extends Address> extends CertifiedTarget<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 a client. If the provided TlsTmSecurityCallback is null this class behaves identical to its superclass CertifiedTarget.
Since:
3.3.0
Author:
Frank Fock
See Also:
  • Constructor Details

    • TlsX509CertifiedTarget

      public TlsX509CertifiedTarget(A address, OctetString securityName, OctetString serverFingerprint, OctetString clientFingerprint, TlsTmSecurityCallback<X509Certificate> tlsTmSecurityCallback)
      Creates a TlsX509CertifiedTarget with the given address, security name, certificate fingerprints, and security callback.
      Parameters:
      address - the transport address of the target.
      securityName - the tmSecurityName of the target. It is used as expected peer identity too, unless CertifiedTarget.setIdentity(OctetString) is called.
      serverFingerprint - the fingerprint of the server certificate to pin, or null/empty if the server certificate is to be validated by its certification path instead.
      clientFingerprint - the fingerprint of the client certificate to pin, or null/empty if the client certificate is to be validated by its certification path instead.
      tlsTmSecurityCallback - the security callback to use for this target or null to use the callback of the transport mapping.
  • Method Details