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