- java.lang.Object
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Comparable<Variable>,BERSerializable,Address,AssignableFromByteArray,AssignableFromString,Variable
public class TlsAddress extends TcpAddress
TheTlsAddressrepresents a TLS transport addresses as defined by RFC 5953 SnmpTSLAddress textual convention.- Since:
- 2.0
- Version:
- 3.2.1
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static LogAdapterlogger(package private) static longserialVersionUID-
Fields inherited from class org.snmp4j.smi.TransportIpAddress
port
-
Fields inherited from class org.snmp4j.smi.IpAddress
ANY_IPADDRESS
-
Fields inherited from class org.snmp4j.smi.AbstractVariable
SMISYNTAXES_PROPERTIES
-
-
Constructor Summary
Constructors Constructor Description TlsAddress()TlsAddress(java.lang.String address)TlsAddress(java.net.InetAddress inetAddress, int port)TlsAddress(TcpAddress tcpAddress)Create aTlsAddressfrom aTcpAddress.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)booleanisTransportCompatible(java.lang.Class<?> other)Checks if the supplied address class is compatible with this class.static Addressparse(java.lang.String address)-
Methods inherited from class org.snmp4j.smi.TransportIpAddress
compareTo, decodeBER, encodeBER, getBERLength, getBERPayloadLength, getPort, getSyntax, getValue, hashCode, isValid, parseAddress, setPort, setTransportAddress, toString
-
Methods inherited from class org.snmp4j.smi.IpAddress
clone, fromSubIndex, getInetAddress, setAddress, setInetAddress, setValue, setValue, toByteArray, toInt, toLong, toSubIndex
-
Methods inherited from class org.snmp4j.smi.AbstractVariable
createFromBER, createFromSyntax, equal, getSyntaxFromString, getSyntaxString, getSyntaxString, isDynamic, isException
-
-
-
-
Field Detail
-
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
-
logger
private static final LogAdapter logger
-
-
Constructor Detail
-
TlsAddress
public TlsAddress()
-
TlsAddress
public TlsAddress(java.net.InetAddress inetAddress, int port)
-
TlsAddress
public TlsAddress(java.lang.String address)
-
TlsAddress
public TlsAddress(TcpAddress tcpAddress)
Create aTlsAddressfrom aTcpAddress.- Parameters:
tcpAddress- theTcpAddressfor the newTlsAddress.- Since:
- 3.0.5
-
-
Method Detail
-
parse
public static Address parse(java.lang.String address)
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equalsin interfaceVariable- Overrides:
equalsin classTcpAddress
-
isTransportCompatible
public boolean isTransportCompatible(java.lang.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- theAddressclass to check for compatibility.- Returns:
trueif the provided address class has the same (compatible) on-the-wire characteristics than this address class. By default this istrueif the provided classotheris the same or a sub class than this class.- Since:
- 3.2.1
-
-