Package sk.iway.iwcm.users.devices
Class DeviceEntity
java.lang.Object
sk.iway.iwcm.users.devices.DeviceEntity
Stores a user's browser recognition and its latest new-device notice.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCreation time of the latest notice, refreshed when the browser is detected again.longReturns the notice deadline without storing a separate expiration column.getId()Latest successful login, matching the retained IP address and location.Unverified city and country from the latest successful login.intvoidsetBrowserName(String browserName) voidsetBrowserVersion(String browserVersion) voidsetCodeAttempts(int codeAttempts) voidsetCodeExpires(Instant codeExpires) voidsetCodeHash(String codeHash) voidsetConfirmationExpires(Instant confirmationExpires) voidsetConfirmationHash(String confirmationHash) voidsetConfirmedAt(Instant confirmedAt) voidsetCreateDate(Instant createDate) Creation time of the latest notice, refreshed when the browser is detected again.voidvoidsetIpAddress(String ipAddress) voidsetLastSeen(Instant lastSeen) Latest successful login, matching the retained IP address and location.voidsetLocation(String location) Unverified city and country from the latest successful login.voidsetOperatingSystem(String operatingSystem) voidsetReportedAt(Instant reportedAt) voidsetTokenHash(String tokenHash) voidsetUserId(int userId)
-
Constructor Details
-
DeviceEntity
public DeviceEntity()
-
-
Method Details
-
getExpiresAt
public long getExpiresAt()Returns the notice deadline without storing a separate expiration column. -
getId
-
getUserId
public int getUserId() -
getTokenHash
-
getCreateDate
Creation time of the latest notice, refreshed when the browser is detected again. -
getLastSeen
Latest successful login, matching the retained IP address and location. -
getBrowserName
-
getBrowserVersion
-
getOperatingSystem
-
getIpAddress
-
getLocation
Unverified city and country from the latest successful login. -
getConfirmedAt
-
getReportedAt
-
getConfirmationHash
-
getConfirmationExpires
-
getCodeHash
-
getCodeExpires
-
getCodeAttempts
public int getCodeAttempts() -
setId
-
setUserId
public void setUserId(int userId) -
setTokenHash
-
setCreateDate
Creation time of the latest notice, refreshed when the browser is detected again. -
setLastSeen
Latest successful login, matching the retained IP address and location. -
setBrowserName
-
setBrowserVersion
-
setOperatingSystem
-
setIpAddress
-
setLocation
Unverified city and country from the latest successful login. -
setConfirmedAt
-
setReportedAt
-
setConfirmationHash
-
setConfirmationExpires
-
setCodeHash
-
setCodeExpires
-
setCodeAttempts
public void setCodeAttempts(int codeAttempts)
-