Record Class CodesignClient.Config

java.lang.Object
java.lang.Record
org.eclipse.csi.codesign.CodesignClient.Config
Record Components:
baseUrl - the SignPath API base URL
organizationId - the SignPath organization identifier
apiToken - the Bearer API token used for authentication
connectTimeout - the HTTP connection timeout
httpTimeout - the HTTP read/write timeout
retryTimeout - the maximum time window for retry attempts
retryInterval - the delay between retry attempts
maxRetries - the maximum number of retry attempts
Enclosing class:
CodesignClient

public static record CodesignClient.Config(String baseUrl, String organizationId, String apiToken, Duration connectTimeout, Duration httpTimeout, Duration retryTimeout, Duration retryInterval, int maxRetries) extends Record
Configuration for the codesign client.
  • Constructor Details

    • Config

      public Config(String baseUrl, String organizationId, String apiToken, Duration connectTimeout, Duration httpTimeout, Duration retryTimeout, Duration retryInterval, int maxRetries)
      Creates an instance of a Config record class.
      Parameters:
      baseUrl - the value for the baseUrl record component
      organizationId - the value for the organizationId record component
      apiToken - the value for the apiToken record component
      connectTimeout - the value for the connectTimeout record component
      httpTimeout - the value for the httpTimeout record component
      retryTimeout - the value for the retryTimeout record component
      retryInterval - the value for the retryInterval record component
      maxRetries - the value for the maxRetries 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. 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.
    • baseUrl

      public String baseUrl()
      Returns the value of the baseUrl record component.
      Returns:
      the value of the baseUrl record component
    • organizationId

      public String organizationId()
      Returns the value of the organizationId record component.
      Returns:
      the value of the organizationId record component
    • apiToken

      public String apiToken()
      Returns the value of the apiToken record component.
      Returns:
      the value of the apiToken record component
    • connectTimeout

      public Duration connectTimeout()
      Returns the value of the connectTimeout record component.
      Returns:
      the value of the connectTimeout record component
    • httpTimeout

      public Duration httpTimeout()
      Returns the value of the httpTimeout record component.
      Returns:
      the value of the httpTimeout record component
    • retryTimeout

      public Duration retryTimeout()
      Returns the value of the retryTimeout record component.
      Returns:
      the value of the retryTimeout record component
    • retryInterval

      public Duration retryInterval()
      Returns the value of the retryInterval record component.
      Returns:
      the value of the retryInterval record component
    • maxRetries

      public int maxRetries()
      Returns the value of the maxRetries record component.
      Returns:
      the value of the maxRetries record component