Package ch.rswk.meta.engine
Record Class UserService.UserServiceEnforceConfig
java.lang.Object
java.lang.Record
ch.rswk.meta.engine.UserService.UserServiceEnforceConfig
- Enclosing class:
UserService
public static record UserService.UserServiceEnforceConfig(boolean otpRequired, @Nullable Set<MetaUser.MetaUserOtpType> otpTypes, @Nullable String passwordRegex)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for theotpRequiredrecord component.private final @Nullable Set<MetaUser.MetaUserOtpType> The field for theotpTypesrecord component.private final @Nullable StringThe field for thepasswordRegexrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionUserServiceEnforceConfig(boolean otpRequired, @Nullable Set<MetaUser.MetaUserOtpType> otpTypes, @Nullable String passwordRegex) Creates an instance of aUserServiceEnforceConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theotpRequiredrecord component.@Nullable Set<MetaUser.MetaUserOtpType> otpTypes()Returns the value of theotpTypesrecord component.@Nullable StringReturns the value of thepasswordRegexrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
otpRequired
private final boolean otpRequiredThe field for theotpRequiredrecord component. -
otpTypes
The field for theotpTypesrecord component. -
passwordRegex
The field for thepasswordRegexrecord component.
-
-
Constructor Details
-
UserServiceEnforceConfig
public UserServiceEnforceConfig(boolean otpRequired, @Nullable Set<MetaUser.MetaUserOtpType> otpTypes, @Nullable String passwordRegex) Creates an instance of aUserServiceEnforceConfigrecord class.- Parameters:
otpRequired- the value for theotpRequiredrecord componentotpTypes- the value for theotpTypesrecord componentpasswordRegex- the value for thepasswordRegexrecord 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 '=='. -
otpRequired
public boolean otpRequired()Returns the value of theotpRequiredrecord component.- Returns:
- the value of the
otpRequiredrecord component
-
otpTypes
Returns the value of theotpTypesrecord component.- Returns:
- the value of the
otpTypesrecord component
-
passwordRegex
Returns the value of thepasswordRegexrecord component.- Returns:
- the value of the
passwordRegexrecord component
-