Package org.signal.libsignal.protocol
Class SignalProtocolAddress
-
- All Implemented Interfaces:
-
org.signal.libsignal.internal.NativeHandleGuard.Owner
public class SignalProtocolAddress extends NativeHandleGuard.SimpleOwner
-
-
Constructor Summary
Constructors Constructor Description SignalProtocolAddress(String name, int deviceId)SignalProtocolAddress(ServiceId serviceId, int deviceId)SignalProtocolAddress(long nativeHandle)
-
Method Summary
Modifier and Type Method Description StringgetName()ServiceIdgetServiceId()Returns a ServiceId if this address contains a valid ServiceId, nullotherwise.intgetDeviceId()StringtoString()booleanequals(Object other)inthashCode()-
Methods inherited from class org.signal.libsignal.internal.NativeHandleGuard.SimpleOwner
unsafeNativeHandleWithoutGuard -
Methods inherited from class org.signal.libsignal.internal.NativeHandleGuard.Owner
guard, guardedMap, guardedMapChecked, guardedRun, guardedRunChecked -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SignalProtocolAddress
SignalProtocolAddress(String name, int deviceId)
- Parameters:
name- the identifier for the recipient, usually a ServiceIddeviceId- the identifier for the device; must be in the range 1-127 inclusive
-
SignalProtocolAddress
SignalProtocolAddress(ServiceId serviceId, int deviceId)
- Parameters:
serviceId- the identifier for the recipientdeviceId- the identifier for the device; must be in the range 1-127 inclusive
-
SignalProtocolAddress
SignalProtocolAddress(long nativeHandle)
-
-
Method Detail
-
getServiceId
ServiceId getServiceId()
Returns a ServiceId if this address contains a valid ServiceId,
nullotherwise.In a future release SignalProtocolAddresses will only support ServiceIds.
-
getDeviceId
int getDeviceId()
-
hashCode
int hashCode()
-
-
-
-