-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Variable>
,BERSerializable
,Address
,AssignableFromByteArray
,AssignableFromString
,Variable
public class TlsAddress extends TcpAddress
TheTlsAddress
represents a TLS transport addresses as defined by RFC 5953 SnmpTSLAddress textual convention.- Since:
- 2.0
- Version:
- 3.2.1
- Author:
- Frank Fock
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.snmp4j.smi.AbstractVariable
SMISYNTAXES_PROPERTIES
-
Fields inherited from class org.snmp4j.smi.IpAddress
ANY_IPADDRESS
-
Fields inherited from class org.snmp4j.smi.TransportIpAddress
port
-
-
Constructor Summary
Constructors Constructor Description TlsAddress()
TlsAddress(String address)
TlsAddress(InetAddress inetAddress, int port)
TlsAddress(TcpAddress tcpAddress)
Create aTlsAddress
from aTcpAddress
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
boolean
isTransportCompatible(Class<?> other)
Checks if the supplied address class is compatible with this class.static Address
parse(String address)
-
Methods inherited from class org.snmp4j.smi.AbstractVariable
createFromBER, createFromSyntax, equal, getSyntaxFromString, getSyntaxString, getSyntaxString, isDynamic, isException
-
Methods inherited from class org.snmp4j.smi.IpAddress
clone, fromSubIndex, getFamily, getInetAddress, setAddress, setInetAddress, setValue, setValue, toByteArray, toInt, toLong, toSubIndex
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from class org.snmp4j.smi.TcpAddress
getSocketAddress
-
Methods inherited from class org.snmp4j.smi.TransportIpAddress
compareTo, decodeBER, encodeBER, getBERLength, getBERPayloadLength, getPort, getSyntax, getValue, hashCode, isValid, parseAddress, setPort, setTransportAddress, toString
-
-
-
-
Constructor Detail
-
TlsAddress
public TlsAddress()
-
TlsAddress
public TlsAddress(InetAddress inetAddress, int port)
-
TlsAddress
public TlsAddress(String address)
-
TlsAddress
public TlsAddress(TcpAddress tcpAddress)
Create aTlsAddress
from aTcpAddress
.- Parameters:
tcpAddress
- theTcpAddress
for the newTlsAddress
.- Since:
- 3.0.5
-
-
Method Detail
-
equals
public boolean equals(Object o)
- Specified by:
equals
in interfaceVariable
- Overrides:
equals
in classTcpAddress
-
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
- theAddress
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 istrue
if the provided classother
is the same or a sub class than this class.- Since:
- 3.2.1
-
-