Record Class DirectusConnectionConfig

java.lang.Object
java.lang.Record
ch.iterial.keycloak.plugins.directus.DirectusConnectionConfig

public record DirectusConnectionConfig(String url, String token, String realm, DirectusConnectionConfig.RoleConfig[] roles, String provider, long ttl, DirectusConnectionConfig.SyncConfig sync, boolean valid) extends Record
  • Constructor Details

    • DirectusConnectionConfig

      public DirectusConnectionConfig(String url, String token, String realm, DirectusConnectionConfig.RoleConfig[] roles, String provider, long ttl, DirectusConnectionConfig.SyncConfig sync, boolean valid)
      Creates an instance of a DirectusConnectionConfig record class.
      Parameters:
      url - the value for the url record component
      token - the value for the token record component
      realm - the value for the realm record component
      roles - the value for the roles record component
      provider - the value for the provider record component
      ttl - the value for the ttl record component
      sync - the value for the sync record component
      valid - the value for the valid record component
  • Method Details

    • toString

      public 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
    • fromScope

      public static DirectusConnectionConfig fromScope(org.keycloak.Config.Scope scope)
    • 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.
    • url

      public String url()
      Returns the value of the url record component.
      Returns:
      the value of the url record component
    • token

      public String token()
      Returns the value of the token record component.
      Returns:
      the value of the token record component
    • realm

      public String realm()
      Returns the value of the realm record component.
      Returns:
      the value of the realm record component
    • roles

      Returns the value of the roles record component.
      Returns:
      the value of the roles record component
    • provider

      public String provider()
      Returns the value of the provider record component.
      Returns:
      the value of the provider record component
    • ttl

      public long ttl()
      Returns the value of the ttl record component.
      Returns:
      the value of the ttl record component
    • sync

      Returns the value of the sync record component.
      Returns:
      the value of the sync record component
    • valid

      public boolean valid()
      Returns the value of the valid record component.
      Returns:
      the value of the valid record component