Record Class UserMFA.Held
java.lang.Object
java.lang.Record
com.iizix.server.user.mfa.UserMFA.Held
- Record Components:
uid- The user ID of the user whose first factor passed.userName- The user name.enrolmentRequired- Whether the user has no second factor and the policy requires one: the sign-in waits for the enrolment, not for a code.
- Enclosing class:
UserMFA
Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theenrolmentRequiredrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.longuid()Returns the value of theuidrecord component.userName()Returns the value of theuserNamerecord component.
Constructor Details
Held
Creates an instance of aHeldrecord class.- Parameters:
uid- the value for theuidrecord componentuserName- the value for theuserNamerecord componentenrolmentRequired- the value for theenrolmentRequiredrecord 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.uid
userName
enrolmentRequired
public boolean enrolmentRequired()Returns the value of theenrolmentRequiredrecord component.- Returns:
- the value of the
enrolmentRequiredrecord component