Package de.murmelmeister.murmelapi.redis
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncaCert()Returns the value of thecaCertrecord component.Returns the value of theclientCertrecord component.Returns the value of theclientKeyrecord component.Returns the value of theclientKeyPasswordrecord component.static RedisConfig.TlsSettingsdefaults()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.keystore()Returns the value of thekeystorerecord component.Returns the value of thekeystorePasswordrecord component.Returns the value of thestoreTyperecord component.toString()Returns a string representation of this record class.Returns the value of thetruststorerecord component.Returns the value of thetruststorePasswordrecord component.voidvalidate()
-
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 aTlsSettingsrecord class.- Parameters:
caCert- the value for thecaCertrecord componentclientCert- the value for theclientCertrecord componentclientKey- the value for theclientKeyrecord componentclientKeyPassword- the value for theclientKeyPasswordrecord componenttruststore- the value for thetruststorerecord componenttruststorePassword- the value for thetruststorePasswordrecord componentkeystore- the value for thekeystorerecord componentkeystorePassword- the value for thekeystorePasswordrecord componentstoreType- the value for thestoreTyperecord component
-
-
Method Details
-
defaults
-
validate
public void validate() -
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
caCert
Returns the value of thecaCertrecord component.- Returns:
- the value of the
caCertrecord component
-
clientCert
Returns the value of theclientCertrecord component.- Returns:
- the value of the
clientCertrecord component
-
clientKey
Returns the value of theclientKeyrecord component.- Returns:
- the value of the
clientKeyrecord component
-
clientKeyPassword
Returns the value of theclientKeyPasswordrecord component.- Returns:
- the value of the
clientKeyPasswordrecord component
-
truststore
Returns the value of thetruststorerecord component.- Returns:
- the value of the
truststorerecord component
-
truststorePassword
Returns the value of thetruststorePasswordrecord component.- Returns:
- the value of the
truststorePasswordrecord component
-
keystore
Returns the value of thekeystorerecord component.- Returns:
- the value of the
keystorerecord component
-
keystorePassword
Returns the value of thekeystorePasswordrecord component.- Returns:
- the value of the
keystorePasswordrecord component
-
storeType
Returns the value of thestoreTyperecord component.- Returns:
- the value of the
storeTyperecord component
-