Package ch.rswk.meta.engine
Record Class UserService.UserServiceConfig
java.lang.Object
java.lang.Record
ch.rswk.meta.engine.UserService.UserServiceConfig
- Enclosing class:
UserService
public static record UserService.UserServiceConfig(int attempts, UserService.UserServiceContactConfig authContact, int authTimeout, @Nullable UserService.UserServiceEnforceConfig enforce, boolean ipAddressAttempts, String luceneIndexDir, UserService.UserServiceContactConfig recoverContact, UserService.UserServiceContactConfig resetContact, int scryptCpu, int scryptMemory, UserService.UserServiceTokenConfig token, UserService.UserServiceContactConfig verifyContact, UserService.UserServiceWebAuthnConfig webAuthn)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
The field for theattempts
record component.private final UserService.UserServiceContactConfig
The field for theauthContact
record component.private final int
The field for theauthTimeout
record component.private final @Nullable UserService.UserServiceEnforceConfig
The field for theenforce
record component.private final boolean
The field for theipAddressAttempts
record component.private final String
The field for theluceneIndexDir
record component.private final UserService.UserServiceContactConfig
The field for therecoverContact
record component.private final UserService.UserServiceContactConfig
The field for theresetContact
record component.private final int
The field for thescryptCpu
record component.private final int
The field for thescryptMemory
record component.private final UserService.UserServiceTokenConfig
The field for thetoken
record component.private final UserService.UserServiceContactConfig
The field for theverifyContact
record component.private final UserService.UserServiceWebAuthnConfig
The field for thewebAuthn
record component. -
Constructor Summary
ConstructorsConstructorDescriptionUserServiceConfig
(int attempts, UserService.UserServiceContactConfig authContact, int authTimeout, @Nullable UserService.UserServiceEnforceConfig enforce, boolean ipAddressAttempts, String luceneIndexDir, UserService.UserServiceContactConfig recoverContact, UserService.UserServiceContactConfig resetContact, int scryptCpu, int scryptMemory, UserService.UserServiceTokenConfig token, UserService.UserServiceContactConfig verifyContact, UserService.UserServiceWebAuthnConfig webAuthn) Creates an instance of aUserServiceConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
attempts()
Returns the value of theattempts
record component.Returns the value of theauthContact
record component.int
Returns the value of theauthTimeout
record component.@Nullable UserService.UserServiceEnforceConfig
enforce()
Returns the value of theenforce
record component.final 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 theipAddressAttempts
record component.Returns the value of theluceneIndexDir
record component.Returns the value of therecoverContact
record component.Returns the value of theresetContact
record component.int
Returns the value of thescryptCpu
record component.int
Returns the value of thescryptMemory
record component.token()
Returns the value of thetoken
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theverifyContact
record component.webAuthn()
Returns the value of thewebAuthn
record component.
-
Field Details
-
attempts
private final int attemptsThe field for theattempts
record component. -
authContact
The field for theauthContact
record component. -
authTimeout
private final int authTimeoutThe field for theauthTimeout
record component. -
enforce
The field for theenforce
record component. -
ipAddressAttempts
private final boolean ipAddressAttemptsThe field for theipAddressAttempts
record component. -
luceneIndexDir
The field for theluceneIndexDir
record component. -
recoverContact
The field for therecoverContact
record component. -
resetContact
The field for theresetContact
record component. -
scryptCpu
private final int scryptCpuThe field for thescryptCpu
record component. -
scryptMemory
private final int scryptMemoryThe field for thescryptMemory
record component. -
token
The field for thetoken
record component. -
verifyContact
The field for theverifyContact
record component. -
webAuthn
The field for thewebAuthn
record component.
-
-
Constructor Details
-
UserServiceConfig
public UserServiceConfig(int attempts, UserService.UserServiceContactConfig authContact, int authTimeout, @Nullable UserService.UserServiceEnforceConfig enforce, boolean ipAddressAttempts, String luceneIndexDir, UserService.UserServiceContactConfig recoverContact, UserService.UserServiceContactConfig resetContact, int scryptCpu, int scryptMemory, UserService.UserServiceTokenConfig token, UserService.UserServiceContactConfig verifyContact, UserService.UserServiceWebAuthnConfig webAuthn) Creates an instance of aUserServiceConfig
record class.- Parameters:
attempts
- the value for theattempts
record componentauthContact
- the value for theauthContact
record componentauthTimeout
- the value for theauthTimeout
record componentenforce
- the value for theenforce
record componentipAddressAttempts
- the value for theipAddressAttempts
record componentluceneIndexDir
- the value for theluceneIndexDir
record componentrecoverContact
- the value for therecoverContact
record componentresetContact
- the value for theresetContact
record componentscryptCpu
- the value for thescryptCpu
record componentscryptMemory
- the value for thescryptMemory
record componenttoken
- the value for thetoken
record componentverifyContact
- the value for theverifyContact
record componentwebAuthn
- the value for thewebAuthn
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
attempts
public int attempts()Returns the value of theattempts
record component.- Returns:
- the value of the
attempts
record component
-
authContact
Returns the value of theauthContact
record component.- Returns:
- the value of the
authContact
record component
-
authTimeout
public int authTimeout()Returns the value of theauthTimeout
record component.- Returns:
- the value of the
authTimeout
record component
-
enforce
Returns the value of theenforce
record component.- Returns:
- the value of the
enforce
record component
-
ipAddressAttempts
public boolean ipAddressAttempts()Returns the value of theipAddressAttempts
record component.- Returns:
- the value of the
ipAddressAttempts
record component
-
luceneIndexDir
Returns the value of theluceneIndexDir
record component.- Returns:
- the value of the
luceneIndexDir
record component
-
recoverContact
Returns the value of therecoverContact
record component.- Returns:
- the value of the
recoverContact
record component
-
resetContact
Returns the value of theresetContact
record component.- Returns:
- the value of the
resetContact
record component
-
scryptCpu
public int scryptCpu()Returns the value of thescryptCpu
record component.- Returns:
- the value of the
scryptCpu
record component
-
scryptMemory
public int scryptMemory()Returns the value of thescryptMemory
record component.- Returns:
- the value of the
scryptMemory
record component
-
token
Returns the value of thetoken
record component.- Returns:
- the value of the
token
record component
-
verifyContact
Returns the value of theverifyContact
record component.- Returns:
- the value of the
verifyContact
record component
-
webAuthn
Returns the value of thewebAuthn
record component.- Returns:
- the value of the
webAuthn
record component
-