Class UserToken

  • All Implemented Interfaces:
    IUserToken

    public final class UserToken
    extends java.lang.Object
    implements IUserToken
    • Method Detail

      • getToken

        public java.util.Optional<java.lang.String> getToken()
        Specified by:
        getToken in interface IUserToken
        Returns:
        Full body of the token. Must match token in URL.
      • getExpiryDate

        public java.util.Optional<ExpiryDate> getExpiryDate()
        Specified by:
        getExpiryDate in interface IUserToken
        Returns:
        ISO 8601 formatted date the token expires. Defaults to 2 months. Set to false to disable expiration.
      • getProperties

        public java.util.Optional<java.lang.Object> getProperties()
        Specified by:
        getProperties in interface IUserToken
        Returns:
        Properties sent to the provider along with the token
      • getDevice

        public java.util.Optional<Device> getDevice()
        Specified by:
        getDevice in interface IUserToken
        Returns:
        Information about the device the token is associated with.
      • getTracking

        public java.util.Optional<Tracking> getTracking()
        Specified by:
        getTracking in interface IUserToken
        Returns:
        Information about the device the token is associated with.
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object