Record Class UserSourceProfileConfig

java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.gateway.user.UserSourceProfileConfig
All Implemented Interfaces:
ExtensionPointProfileConfig

public record UserSourceProfileConfig(String type, Boolean scheduleRestricted, String failoverProfile, AuthenticatorFailoverMode failoverMode, Long cacheValidationTimeout, Boolean lockoutEnabled, Long lockoutAttempts, Long lockoutWindow) extends Record implements ExtensionPointProfileConfig
Configuration for a user source profile. All user source profiles will have the contained configuration.
  • Field Details

    • RESOURCE_TYPE

      public static final ResourceType RESOURCE_TYPE
  • Constructor Details

    • UserSourceProfileConfig

      public UserSourceProfileConfig(String type)
      Create an UserSourceProfileConfig with default values for all fields.
      Parameters:
      type - the type of the user source.
    • UserSourceProfileConfig

      public UserSourceProfileConfig(String type, Boolean scheduleRestricted, String failoverProfile, AuthenticatorFailoverMode failoverMode, Long cacheValidationTimeout, Boolean lockoutEnabled, Long lockoutAttempts, Long lockoutWindow)
      Creates an instance of a UserSourceProfileConfig record class.
      Parameters:
      type - the value for the type record component
      scheduleRestricted - the value for the scheduleRestricted record component
      failoverProfile - the value for the failoverProfile record component
      failoverMode - the value for the failoverMode record component
      cacheValidationTimeout - the value for the cacheValidationTimeout record component
      lockoutEnabled - the value for the lockoutEnabled record component
      lockoutAttempts - the value for the lockoutAttempts record component
      lockoutWindow - the value for the lockoutWindow 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • type

      public String type()
      Returns the value of the type record component.
      Specified by:
      type in interface ExtensionPointProfileConfig
      Returns:
      the value of the type record component
    • scheduleRestricted

      public Boolean scheduleRestricted()
      Returns the value of the scheduleRestricted record component.
      Returns:
      the value of the scheduleRestricted record component
    • failoverProfile

      public String failoverProfile()
      Returns the value of the failoverProfile record component.
      Returns:
      the value of the failoverProfile record component
    • failoverMode

      public AuthenticatorFailoverMode failoverMode()
      Returns the value of the failoverMode record component.
      Returns:
      the value of the failoverMode record component
    • cacheValidationTimeout

      public Long cacheValidationTimeout()
      Returns the value of the cacheValidationTimeout record component.
      Returns:
      the value of the cacheValidationTimeout record component
    • lockoutEnabled

      public Boolean lockoutEnabled()
      Returns the value of the lockoutEnabled record component.
      Returns:
      the value of the lockoutEnabled record component
    • lockoutAttempts

      public Long lockoutAttempts()
      Returns the value of the lockoutAttempts record component.
      Returns:
      the value of the lockoutAttempts record component
    • lockoutWindow

      public Long lockoutWindow()
      Returns the value of the lockoutWindow record component.
      Returns:
      the value of the lockoutWindow record component