Record Class FailedSignInStore.Attempt
java.lang.Object
java.lang.Record
com.iizix.server.user.FailedSignInStore.Attempt
- Record Components:
id- The row identifier, zero to have one made at the write.uid- The user.time- When, in epoch milliseconds (UTC).step- The step that failed.afterPassword- true when the password was right and a later step failed.urgent- true when the attempt is mailed every time (past the password, or a sensitive account).appID- The application, null for none.deviceName- What the client said it was, null for none.address- The client address as text, null for none.place- The place of the address, null for none.mailKind- What became of the mail: NULL while due, else one of the MAIL_ constants.mailedAt- When mailed, null for not (yet).serverID- The server that wrote it, null when unknown.
- Enclosing class:
FailedSignInStore
public static record FailedSignInStore.Attempt(long id, long uid, long time, FailedSignInStep step, boolean afterPassword, boolean urgent, String appID, String deviceName, String address, String place, String mailKind, Long mailedAt, String serverID) extends Record
One attempt, as written and as read.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionaddress()Returns the value of theaddressrecord component.booleanReturns the value of theafterPasswordrecord component.appID()Returns the value of theappIDrecord component.Returns the value of thedeviceNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longid()Returns the value of theidrecord component.booleanTells whether a mail about the attempt is still due.mailedAt()Returns the value of themailedAtrecord component.mailKind()Returns the value of themailKindrecord component.place()Returns the value of theplacerecord component.serverID()Returns the value of theserverIDrecord component.step()Returns the value of thesteprecord component.longtime()Returns the value of thetimerecord component.toInfo()The attempt as the SignIn module gets it.final StringtoString()Returns a string representation of this record class.longuid()Returns the value of theuidrecord component.booleanurgent()Returns the value of theurgentrecord component.
Constructor Details
Attempt
public Attempt(long id, long uid, long time, FailedSignInStep step, boolean afterPassword, boolean urgent, String appID, String deviceName, String address, String place, String mailKind, Long mailedAt, String serverID) Creates an instance of aAttemptrecord class.- Parameters:
id- the value for theidrecord componentuid- the value for theuidrecord componenttime- the value for thetimerecord componentstep- the value for thesteprecord componentafterPassword- the value for theafterPasswordrecord componenturgent- the value for theurgentrecord componentappID- the value for theappIDrecord componentdeviceName- the value for thedeviceNamerecord componentaddress- the value for theaddressrecord componentplace- the value for theplacerecord componentmailKind- the value for themailKindrecord componentmailedAt- the value for themailedAtrecord componentserverID- the value for theserverIDrecord component
Method Details
isPending
public boolean isPending()Tells whether a mail about the attempt is still due.- Returns:
- true while
mailKindis null.
toInfo
The attempt as the SignIn module gets it.- Returns:
- The information, nothing secret in it.
toString
hashCode
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes.id
uid
time
step
afterPassword
public boolean afterPassword()Returns the value of theafterPasswordrecord component.- Returns:
- the value of the
afterPasswordrecord component
urgent
appID
deviceName
Returns the value of thedeviceNamerecord component.- Returns:
- the value of the
deviceNamerecord component
address
place
mailKind
mailedAt
serverID