Record Class RedisConfig.TlsSettings

java.lang.Object
java.lang.Record
de.murmelmeister.murmelapi.redis.RedisConfig.TlsSettings
Enclosing class:
RedisConfig

public static record RedisConfig.TlsSettings(Path caCert, Path clientCert, Path clientKey, String clientKeyPassword, Path truststore, String truststorePassword, Path keystore, String keystorePassword, String storeType) extends Record
PEM files or Java stores; an empty trust configuration uses the JVM's trusted CAs.
  • Constructor Details

    • TlsSettings

      public TlsSettings(Path caCert, Path clientCert, Path clientKey, String clientKeyPassword, Path truststore, String truststorePassword, Path keystore, String keystorePassword, String storeType)
      Creates an instance of a TlsSettings record class.
      Parameters:
      caCert - the value for the caCert record component
      clientCert - the value for the clientCert record component
      clientKey - the value for the clientKey record component
      clientKeyPassword - the value for the clientKeyPassword record component
      truststore - the value for the truststore record component
      truststorePassword - the value for the truststorePassword record component
      keystore - the value for the keystore record component
      keystorePassword - the value for the keystorePassword record component
      storeType - the value for the storeType record component
  • Method Details

    • defaults

      public static RedisConfig.TlsSettings defaults()
    • validate

      public void validate()
    • 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
    • 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.
    • caCert

      public Path caCert()
      Returns the value of the caCert record component.
      Returns:
      the value of the caCert record component
    • clientCert

      public Path clientCert()
      Returns the value of the clientCert record component.
      Returns:
      the value of the clientCert record component
    • clientKey

      public Path clientKey()
      Returns the value of the clientKey record component.
      Returns:
      the value of the clientKey record component
    • clientKeyPassword

      public String clientKeyPassword()
      Returns the value of the clientKeyPassword record component.
      Returns:
      the value of the clientKeyPassword record component
    • truststore

      public Path truststore()
      Returns the value of the truststore record component.
      Returns:
      the value of the truststore record component
    • truststorePassword

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

      public Path keystore()
      Returns the value of the keystore record component.
      Returns:
      the value of the keystore record component
    • keystorePassword

      public String keystorePassword()
      Returns the value of the keystorePassword record component.
      Returns:
      the value of the keystorePassword record component
    • storeType

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