Record Class FailedSignInInfo
java.lang.Object
java.lang.Record
com.iizix.user.FailedSignInInfo
- Record Components:
time- When, in epoch milliseconds (UTC).step- The step that failed.afterPassword- true when the password was right and a later step failed ("almost signed in"), false when the password itself was refused.appID- The application the attempt was into, null when unknown.deviceName- What the client said it was, e.g. "Browser, Windows", null when unknown.address- The client address as text, null when unknown.place- The place of the address, "city, region, country", null when unknown.mailed- true when the user has been mailed about the attempt (at once, or in a batch), false when not (the setting off, no verified address, or not yet).
public record FailedSignInInfo(long time, FailedSignInStep step, boolean afterPassword, String appID, String deviceName, String address, String place, boolean mailed) extends Record
One failed attempt to sign in to a user's account, as the server kept it and as the SignIn module lists it to the user (CC-SIGNIN-FAILED-ATTEMPTS, order 561): when, at which step, from which client address and approximate place, from what device, into which application, and whether the user has been mailed about it. Nothing secret travels here: no password, no code, no exact position.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorsConstructorDescriptionFailedSignInInfo(long time, FailedSignInStep step, boolean afterPassword, String appID, String deviceName, String address, String place, boolean mailed) Creates an instance of aFailedSignInInforecord class.Method 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.booleanmailed()Returns the value of themailedrecord component.place()Returns the value of theplacerecord component.step()Returns the value of thesteprecord component.longtime()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.
Constructor Details
FailedSignInInfo
public FailedSignInInfo(long time, FailedSignInStep step, boolean afterPassword, String appID, String deviceName, String address, String place, boolean mailed) Creates an instance of aFailedSignInInforecord class.- Parameters:
time- the value for thetimerecord componentstep- the value for thesteprecord componentafterPassword- the value for theafterPasswordrecord componentappID- the value for theappIDrecord componentdeviceName- the value for thedeviceNamerecord componentaddress- the value for theaddressrecord componentplace- the value for theplacerecord componentmailed- the value for themailedrecord component
Method Details
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.time
step
afterPassword
public boolean afterPassword()Returns the value of theafterPasswordrecord component.- Returns:
- the value of the
afterPasswordrecord component
appID
deviceName
Returns the value of thedeviceNamerecord component.- Returns:
- the value of the
deviceNamerecord component
address
place
mailed