Class DeviceAddResult


  • public final class DeviceAddResult
    extends java.lang.Object
    Result from adding a new device
    • Method Detail

      • getAccountId

        public final UserId getAccountId()
        The user's given id, which uniquely identifies them inside the segment.
      • getSegmentId

        public final long getSegmentId()
        The user's segment id
      • getDevicePrivateKey

        public final PrivateKey getDevicePrivateKey()
        The private key which was generated for a particular device for the user. Not the user's master private key.
      • getSigningPrivateKey

        public final DeviceSigningKeyPair getSigningPrivateKey()
        The signing key which was generated for the device
      • getDeviceId

        public final DeviceId getDeviceId()
        The id of the device that was added
      • getName

        public final java.util.Optional<DeviceName> getName()
        The name of the device that was added
      • getCreated

        public final java.util.Date getCreated()
        The date and time that the device was created
      • getLastUpdated

        public final java.util.Date getLastUpdated()
        The date and time that the device was last updated
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • delete

        public void delete()
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object