java.lang.Object
java.lang.Record
org.alfresco.hxi_connector.common.adapters.auth.config.properties.Authorization

public record Authorization(@NotBlank String applicationName, @NotBlank String serviceUser, @NotBlank String environmentKey) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    Authorization(@NotBlank String applicationName, @NotBlank String serviceUser, @NotBlank String environmentKey)
    Creates an instance of a Authorization record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotBlank String
    Returns the value of the applicationName record component.
    @NotBlank String
    Returns the value of the environmentKey record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    @NotBlank String
    Returns the value of the serviceUser record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Authorization

      public Authorization(@NotBlank @NotBlank String applicationName, @NotBlank @NotBlank String serviceUser, @NotBlank @NotBlank String environmentKey)
      Creates an instance of a Authorization record class.
      Parameters:
      applicationName - the value for the applicationName record component
      serviceUser - the value for the serviceUser record component
      environmentKey - the value for the environmentKey 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.
    • applicationName

      @NotBlank public @NotBlank String applicationName()
      Returns the value of the applicationName record component.
      Returns:
      the value of the applicationName record component
    • serviceUser

      @NotBlank public @NotBlank String serviceUser()
      Returns the value of the serviceUser record component.
      Returns:
      the value of the serviceUser record component
    • environmentKey

      @NotBlank public @NotBlank String environmentKey()
      Returns the value of the environmentKey record component.
      Returns:
      the value of the environmentKey record component