Record Class OAuth2ThingsConfig.ConfigState

java.lang.Object
java.lang.Record
org.forgerock.am.iot.OAuth2ThingsConfig.ConfigState
Enclosing class:
OAuth2ThingsConfig

public static record OAuth2ThingsConfig.ConfigState(Realm realm, Optional<String> oauth2ThingsDataStore, Optional<String> oauth2ThingsDn, Optional<String> oauth2ThingsNamingAttribute, Optional<String> oauth2ThingsIdentityObjectName) extends Record
Represents the OAuth2Things configuration state for a realm.
  • Constructor Details

    • ConfigState

      public ConfigState(Realm realm, Optional<String> oauth2ThingsDataStore, Optional<String> oauth2ThingsDn, Optional<String> oauth2ThingsNamingAttribute, Optional<String> oauth2ThingsIdentityObjectName)
      Creates an instance of a ConfigState record class.
      Parameters:
      realm - the value for the realm record component
      oauth2ThingsDataStore - the value for the oauth2ThingsDataStore record component
      oauth2ThingsDn - the value for the oauth2ThingsDn record component
      oauth2ThingsNamingAttribute - the value for the oauth2ThingsNamingAttribute record component
      oauth2ThingsIdentityObjectName - the value for the oauth2ThingsIdentityObjectName 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.
    • realm

      public Realm realm()
      Returns the value of the realm record component.
      Returns:
      the value of the realm record component
    • oauth2ThingsDataStore

      public Optional<String> oauth2ThingsDataStore()
      Returns the value of the oauth2ThingsDataStore record component.
      Returns:
      the value of the oauth2ThingsDataStore record component
    • oauth2ThingsDn

      public Optional<String> oauth2ThingsDn()
      Returns the value of the oauth2ThingsDn record component.
      Returns:
      the value of the oauth2ThingsDn record component
    • oauth2ThingsNamingAttribute

      public Optional<String> oauth2ThingsNamingAttribute()
      Returns the value of the oauth2ThingsNamingAttribute record component.
      Returns:
      the value of the oauth2ThingsNamingAttribute record component
    • oauth2ThingsIdentityObjectName

      public Optional<String> oauth2ThingsIdentityObjectName()
      Returns the value of the oauth2ThingsIdentityObjectName record component.
      Returns:
      the value of the oauth2ThingsIdentityObjectName record component