Module org.snmp4j

Class DtlsAddress

All Implemented Interfaces:
Serializable, Cloneable, Comparable<Variable>, BERSerializable, Address, AssignableFromByteArray, AssignableFromString, Variable

public class DtlsAddress extends UdpAddress
The TlsAddress represents a TLS transport address as defined by RFC 5953 SnmpTSLAddress textual convention.
Since:
3.0
Version:
3.0
Author:
Frank Fock
See Also:
  • Constructor Details

    • DtlsAddress

      public DtlsAddress()
    • DtlsAddress

      public DtlsAddress(UdpAddress udpAddress)
    • DtlsAddress

      public DtlsAddress(InetAddress inetAddress, int port)
    • DtlsAddress

      public DtlsAddress(int port)
      Create a DtlsAddress for the local host (InetAddress.getLocalHost() with the provided port. If the local host is not known, a RuntimeException is thrown.
      Parameters:
      port - the UDP port.
    • DtlsAddress

      public DtlsAddress(String address)
  • Method Details

    • parse

      public static Address parse(String address)
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface Variable
      Overrides:
      equals in class UdpAddress
    • isTransportCompatible

      public boolean isTransportCompatible(Class<?> other)
      Checks if the supplied address class is compatible with this class. For example, secure transport classes like TLS are not compatible with TCP because the latter is not able to provide the required security characteristics.
      Parameters:
      other - the Address class to check for compatibility.
      Returns:
      true if the provided address class has the same (compatible) on-the-wire characteristics than this address class. By default, this is true if the provided class other is the same or a subclass than this class.
      Since:
      3.2.1
    • clone

      public Object clone()
      Description copied from interface: Variable
      Clones this variable. Cloning can be used by the SNMP4J API to better support concurrency by creating a clone for internal processing. The content of this object is independent to the content of the clone. Thus, changes to the clone will have no effect to this object.
      Specified by:
      clone in interface Variable
      Overrides:
      clone in class UdpAddress
      Returns:
      a new instance of this Variable with the same value.