Record Class HttpService.HttpServiceSslConfig

java.lang.Object
java.lang.Record
ch.rswk.meta.engine.HttpService.HttpServiceSslConfig
Record Components:
cipherSuites - optional, defaults to HttpService.DEFAULT_SSL_CIPHER_SUITES
protocols - optional, defaults to HttpService.DEFAULT_SSL_PROTOCOLS
Enclosing class:
HttpService

public static record HttpService.HttpServiceSslConfig(@Nullable Set<String> cipherSuites, String keystore, String keystorePw, @Nullable Set<String> protocols) extends Record
  • Field Details

    • cipherSuites

      private final @Nullable Set<String> cipherSuites
      The field for the cipherSuites record component.
    • keystore

      private final String keystore
      The field for the keystore record component.
    • keystorePw

      private final String keystorePw
      The field for the keystorePw record component.
    • protocols

      private final @Nullable Set<String> protocols
      The field for the protocols record component.
  • Constructor Details

    • HttpServiceSslConfig

      public HttpServiceSslConfig(@Nullable Set<String> cipherSuites, String keystore, String keystorePw, @Nullable Set<String> protocols)
      Creates an instance of a HttpServiceSslConfig record class.
      Parameters:
      cipherSuites - the value for the cipherSuites record component
      keystore - the value for the keystore record component
      keystorePw - the value for the keystorePw record component
      protocols - the value for the protocols 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.
    • cipherSuites

      public @Nullable Set<String> cipherSuites()
      Returns the value of the cipherSuites record component.
      Returns:
      the value of the cipherSuites record component
    • keystore

      public String keystore()
      Returns the value of the keystore record component.
      Returns:
      the value of the keystore record component
    • keystorePw

      public String keystorePw()
      Returns the value of the keystorePw record component.
      Returns:
      the value of the keystorePw record component
    • protocols

      public @Nullable Set<String> protocols()
      Returns the value of the protocols record component.
      Returns:
      the value of the protocols record component