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 boolean
The field for theotpRequired
record component.private final @Nullable Set
<MetaUser.MetaUserOtpType> The field for theotpTypes
record component.private final @Nullable String
The field for thepasswordRegex
record component. -
Constructor Summary
ConstructorsConstructorDescriptionUserServiceEnforceConfig
(boolean otpRequired, @Nullable Set<MetaUser.MetaUserOtpType> otpTypes, @Nullable String passwordRegex) Creates an instance of aUserServiceEnforceConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theotpRequired
record component.@Nullable Set
<MetaUser.MetaUserOtpType> otpTypes()
Returns the value of theotpTypes
record component.@Nullable String
Returns the value of thepasswordRegex
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
otpRequired
private final boolean otpRequiredThe field for theotpRequired
record component. -
otpTypes
The field for theotpTypes
record component. -
passwordRegex
The field for thepasswordRegex
record component.
-
-
Constructor Details
-
UserServiceEnforceConfig
public UserServiceEnforceConfig(boolean otpRequired, @Nullable Set<MetaUser.MetaUserOtpType> otpTypes, @Nullable String passwordRegex) Creates an instance of aUserServiceEnforceConfig
record class.- Parameters:
otpRequired
- the value for theotpRequired
record componentotpTypes
- the value for theotpTypes
record componentpasswordRegex
- the value for thepasswordRegex
record 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 theotpRequired
record component.- Returns:
- the value of the
otpRequired
record component
-
otpTypes
Returns the value of theotpTypes
record component.- Returns:
- the value of the
otpTypes
record component
-
passwordRegex
Returns the value of thepasswordRegex
record component.- Returns:
- the value of the
passwordRegex
record component
-