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 intThe field for theattemptsrecord component.private final UserService.UserServiceContactConfigThe field for theauthContactrecord component.private final intThe field for theauthTimeoutrecord component.private final @Nullable UserService.UserServiceEnforceConfigThe field for theenforcerecord component.private final booleanThe field for theipAddressAttemptsrecord component.private final StringThe field for theluceneIndexDirrecord component.private final UserService.UserServiceContactConfigThe field for therecoverContactrecord component.private final UserService.UserServiceContactConfigThe field for theresetContactrecord component.private final intThe field for thescryptCpurecord component.private final intThe field for thescryptMemoryrecord component.private final UserService.UserServiceTokenConfigThe field for thetokenrecord component.private final UserService.UserServiceContactConfigThe field for theverifyContactrecord component.private final UserService.UserServiceWebAuthnConfigThe field for thewebAuthnrecord 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 aUserServiceConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintattempts()Returns the value of theattemptsrecord component.Returns the value of theauthContactrecord component.intReturns the value of theauthTimeoutrecord component.@Nullable UserService.UserServiceEnforceConfigenforce()Returns the value of theenforcerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theipAddressAttemptsrecord component.Returns the value of theluceneIndexDirrecord component.Returns the value of therecoverContactrecord component.Returns the value of theresetContactrecord component.intReturns the value of thescryptCpurecord component.intReturns the value of thescryptMemoryrecord component.token()Returns the value of thetokenrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theverifyContactrecord component.webAuthn()Returns the value of thewebAuthnrecord component.
-
Field Details
-
attempts
private final int attemptsThe field for theattemptsrecord component. -
authContact
The field for theauthContactrecord component. -
authTimeout
private final int authTimeoutThe field for theauthTimeoutrecord component. -
enforce
The field for theenforcerecord component. -
ipAddressAttempts
private final boolean ipAddressAttemptsThe field for theipAddressAttemptsrecord component. -
luceneIndexDir
The field for theluceneIndexDirrecord component. -
recoverContact
The field for therecoverContactrecord component. -
resetContact
The field for theresetContactrecord component. -
scryptCpu
private final int scryptCpuThe field for thescryptCpurecord component. -
scryptMemory
private final int scryptMemoryThe field for thescryptMemoryrecord component. -
token
The field for thetokenrecord component. -
verifyContact
The field for theverifyContactrecord component. -
webAuthn
The field for thewebAuthnrecord 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 aUserServiceConfigrecord class.- Parameters:
attempts- the value for theattemptsrecord componentauthContact- the value for theauthContactrecord componentauthTimeout- the value for theauthTimeoutrecord componentenforce- the value for theenforcerecord componentipAddressAttempts- the value for theipAddressAttemptsrecord componentluceneIndexDir- the value for theluceneIndexDirrecord componentrecoverContact- the value for therecoverContactrecord componentresetContact- the value for theresetContactrecord componentscryptCpu- the value for thescryptCpurecord componentscryptMemory- the value for thescryptMemoryrecord componenttoken- the value for thetokenrecord componentverifyContact- the value for theverifyContactrecord componentwebAuthn- the value for thewebAuthnrecord 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 '=='. -
attempts
public int attempts()Returns the value of theattemptsrecord component.- Returns:
- the value of the
attemptsrecord component
-
authContact
Returns the value of theauthContactrecord component.- Returns:
- the value of the
authContactrecord component
-
authTimeout
public int authTimeout()Returns the value of theauthTimeoutrecord component.- Returns:
- the value of the
authTimeoutrecord component
-
enforce
Returns the value of theenforcerecord component.- Returns:
- the value of the
enforcerecord component
-
ipAddressAttempts
public boolean ipAddressAttempts()Returns the value of theipAddressAttemptsrecord component.- Returns:
- the value of the
ipAddressAttemptsrecord component
-
luceneIndexDir
Returns the value of theluceneIndexDirrecord component.- Returns:
- the value of the
luceneIndexDirrecord component
-
recoverContact
Returns the value of therecoverContactrecord component.- Returns:
- the value of the
recoverContactrecord component
-
resetContact
Returns the value of theresetContactrecord component.- Returns:
- the value of the
resetContactrecord component
-
scryptCpu
public int scryptCpu()Returns the value of thescryptCpurecord component.- Returns:
- the value of the
scryptCpurecord component
-
scryptMemory
public int scryptMemory()Returns the value of thescryptMemoryrecord component.- Returns:
- the value of the
scryptMemoryrecord component
-
token
Returns the value of thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-
verifyContact
Returns the value of theverifyContactrecord component.- Returns:
- the value of the
verifyContactrecord component
-
webAuthn
Returns the value of thewebAuthnrecord component.- Returns:
- the value of the
webAuthnrecord component
-