@Beta @Immutable public class ProtectedTransportEndpointDescription extends Object
Modifier | Constructor and Description |
---|---|
protected |
ProtectedTransportEndpointDescription(List<TransportEndpointDescription> paths,
DeviceId peer,
String fingerprint)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static ProtectedTransportEndpointDescription |
buildDescription(List<TransportEndpointDescription> paths,
DeviceId peer,
String fingerprint)
Creates a
ProtectedTransportEndpointDescription . |
String |
fingerprint()
Returns fingerprint to identify this protected transport entity.
|
static ProtectedTransportEndpointDescription |
of(List<TransportEndpointDescription> paths,
DeviceId peer,
String fingerprint)
Creates a
ProtectedTransportEndpointDescription . |
List<TransportEndpointDescription> |
paths()
Returns List of underlying transport entity endpoints in priority order.
|
DeviceId |
peer()
Returns DeviceId of remote peer of this endpoint.
|
String |
toString() |
protected ProtectedTransportEndpointDescription(List<TransportEndpointDescription> paths, DeviceId peer, String fingerprint)
paths
- TransportEndpointDescription
speer
- remote peer of this endpointfingerprint
- to identify this protected transport entity.public List<TransportEndpointDescription> paths()
public DeviceId peer()
public String fingerprint()
public static final ProtectedTransportEndpointDescription buildDescription(List<TransportEndpointDescription> paths, DeviceId peer, String fingerprint)
ProtectedTransportEndpointDescription
.paths
- TransportEndpointDescription
s forming protectionpeer
- DeviceId of remote peer of this endpoint.fingerprint
- opaque fingerprint object. must be serializable.TransportEndpointDescription
public static final ProtectedTransportEndpointDescription of(List<TransportEndpointDescription> paths, DeviceId peer, String fingerprint)
ProtectedTransportEndpointDescription
.paths
- TransportEndpointDescription
s forming protectionpeer
- DeviceId of remote peer of this endpoint.fingerprint
- opaque fingerprint object. must be serializable.TransportEndpointDescription