Class DeviceEntity

java.lang.Object
sk.iway.iwcm.users.devices.DeviceEntity

@Entity public class DeviceEntity extends Object
Stores a user's browser recognition and its latest new-device notice.
  • Constructor Details

    • DeviceEntity

      public DeviceEntity()
  • Method Details

    • getExpiresAt

      public long getExpiresAt()
      Returns the notice deadline without storing a separate expiration column.
    • getId

      public Long getId()
    • getUserId

      public int getUserId()
    • getTokenHash

      public String getTokenHash()
    • getCreateDate

      public Instant getCreateDate()
      Creation time of the latest notice, refreshed when the browser is detected again.
    • getLastSeen

      public Instant getLastSeen()
      Latest successful login, matching the retained IP address and location.
    • getBrowserName

      public String getBrowserName()
    • getBrowserVersion

      public String getBrowserVersion()
    • getOperatingSystem

      public String getOperatingSystem()
    • getIpAddress

      public String getIpAddress()
    • getLocation

      public String getLocation()
      Unverified city and country from the latest successful login.
    • getConfirmedAt

      public Instant getConfirmedAt()
    • getReportedAt

      public Instant getReportedAt()
    • getConfirmationHash

      public String getConfirmationHash()
    • getConfirmationExpires

      public Instant getConfirmationExpires()
    • getCodeHash

      public String getCodeHash()
    • getCodeExpires

      public Instant getCodeExpires()
    • getCodeAttempts

      public int getCodeAttempts()
    • setId

      public void setId(Long id)
    • setUserId

      public void setUserId(int userId)
    • setTokenHash

      public void setTokenHash(String tokenHash)
    • setCreateDate

      public void setCreateDate(Instant createDate)
      Creation time of the latest notice, refreshed when the browser is detected again.
    • setLastSeen

      public void setLastSeen(Instant lastSeen)
      Latest successful login, matching the retained IP address and location.
    • setBrowserName

      public void setBrowserName(String browserName)
    • setBrowserVersion

      public void setBrowserVersion(String browserVersion)
    • setOperatingSystem

      public void setOperatingSystem(String operatingSystem)
    • setIpAddress

      public void setIpAddress(String ipAddress)
    • setLocation

      public void setLocation(String location)
      Unverified city and country from the latest successful login.
    • setConfirmedAt

      public void setConfirmedAt(Instant confirmedAt)
    • setReportedAt

      public void setReportedAt(Instant reportedAt)
    • setConfirmationHash

      public void setConfirmationHash(String confirmationHash)
    • setConfirmationExpires

      public void setConfirmationExpires(Instant confirmationExpires)
    • setCodeHash

      public void setCodeHash(String codeHash)
    • setCodeExpires

      public void setCodeExpires(Instant codeExpires)
    • setCodeAttempts

      public void setCodeAttempts(int codeAttempts)