Record Class CliProperties

java.lang.Object
java.lang.Record
com.irurueta.authserver.serviceclient.CliProperties
Record Components:
printAccessToken - whether the runner also prints the access token it used (false by default: a token is a credential and is never printed unless asked).
subjectToken - access token of the user for the token-exchange runner, normally read from the SERVICE_CLIENT_SUBJECT_TOKEN environment variable.

@ConfigurationProperties(prefix="service-client.cli") public record CliProperties(boolean printAccessToken, String subjectToken) extends Record
Settings of the client-credentials and token-exchange runners (service-client.cli.*).
  • Field Details

    • printAccessToken

      private final boolean printAccessToken
      The field for the printAccessToken record component.
    • subjectToken

      private final String subjectToken
      The field for the subjectToken record component.
  • Constructor Details

    • CliProperties

      public CliProperties(boolean printAccessToken, String subjectToken)
      Creates an instance of a CliProperties record class.
      Parameters:
      printAccessToken - the value for the printAccessToken record component
      subjectToken - the value for the subjectToken record component
  • Method Details

    • toString

      public String toString()
      Describes the settings without the token.
      Specified by:
      toString in class Record
      Returns:
      the description.
    • 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.
    • printAccessToken

      public boolean printAccessToken()
      Returns the value of the printAccessToken record component.
      Returns:
      the value of the printAccessToken record component
    • subjectToken

      public String subjectToken()
      Returns the value of the subjectToken record component.
      Returns:
      the value of the subjectToken record component