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 Details

    • attempts

      private final int attempts
      The field for the attempts record component.
    • authContact

      private final UserService.UserServiceContactConfig authContact
      The field for the authContact record component.
    • authTimeout

      private final int authTimeout
      The field for the authTimeout record component.
    • enforce

      private final @Nullable UserService.UserServiceEnforceConfig enforce
      The field for the enforce record component.
    • ipAddressAttempts

      private final boolean ipAddressAttempts
      The field for the ipAddressAttempts record component.
    • luceneIndexDir

      private final String luceneIndexDir
      The field for the luceneIndexDir record component.
    • recoverContact

      private final UserService.UserServiceContactConfig recoverContact
      The field for the recoverContact record component.
    • resetContact

      private final UserService.UserServiceContactConfig resetContact
      The field for the resetContact record component.
    • scryptCpu

      private final int scryptCpu
      The field for the scryptCpu record component.
    • scryptMemory

      private final int scryptMemory
      The field for the scryptMemory record component.
    • token

      The field for the token record component.
    • verifyContact

      private final UserService.UserServiceContactConfig verifyContact
      The field for the verifyContact record component.
    • webAuthn

      private final UserService.UserServiceWebAuthnConfig webAuthn
      The field for the webAuthn 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 a UserServiceConfig record class.
      Parameters:
      attempts - the value for the attempts record component
      authContact - the value for the authContact record component
      authTimeout - the value for the authTimeout record component
      enforce - the value for the enforce record component
      ipAddressAttempts - the value for the ipAddressAttempts record component
      luceneIndexDir - the value for the luceneIndexDir record component
      recoverContact - the value for the recoverContact record component
      resetContact - the value for the resetContact record component
      scryptCpu - the value for the scryptCpu record component
      scryptMemory - the value for the scryptMemory record component
      token - the value for the token record component
      verifyContact - the value for the verifyContact record component
      webAuthn - the value for the webAuthn record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • attempts

      public int attempts()
      Returns the value of the attempts record component.
      Returns:
      the value of the attempts record component
    • authContact

      Returns the value of the authContact record component.
      Returns:
      the value of the authContact record component
    • authTimeout

      public int authTimeout()
      Returns the value of the authTimeout record component.
      Returns:
      the value of the authTimeout record component
    • enforce

      public @Nullable UserService.UserServiceEnforceConfig enforce()
      Returns the value of the enforce record component.
      Returns:
      the value of the enforce record component
    • ipAddressAttempts

      public boolean ipAddressAttempts()
      Returns the value of the ipAddressAttempts record component.
      Returns:
      the value of the ipAddressAttempts record component
    • luceneIndexDir

      public String luceneIndexDir()
      Returns the value of the luceneIndexDir record component.
      Returns:
      the value of the luceneIndexDir record component
    • recoverContact

      public UserService.UserServiceContactConfig recoverContact()
      Returns the value of the recoverContact record component.
      Returns:
      the value of the recoverContact record component
    • resetContact

      public UserService.UserServiceContactConfig resetContact()
      Returns the value of the resetContact record component.
      Returns:
      the value of the resetContact record component
    • scryptCpu

      public int scryptCpu()
      Returns the value of the scryptCpu record component.
      Returns:
      the value of the scryptCpu record component
    • scryptMemory

      public int scryptMemory()
      Returns the value of the scryptMemory record component.
      Returns:
      the value of the scryptMemory record component
    • token

      Returns the value of the token record component.
      Returns:
      the value of the token record component
    • verifyContact

      public UserService.UserServiceContactConfig verifyContact()
      Returns the value of the verifyContact record component.
      Returns:
      the value of the verifyContact record component
    • webAuthn

      Returns the value of the webAuthn record component.
      Returns:
      the value of the webAuthn record component