Package io.kroxylicious.proxy.config.tls
Record Class TrustStore
java.lang.Object
java.lang.Record
io.kroxylicious.proxy.config.tls.TrustStore
- Record Components:
storeFile- location of a key store, or reference to a PEM file containing both private-key/certificate/intermediates.storePasswordProvider- provider for the store password or null if store does not require a password.storeType- specifies the server key type. Legal values are those types supported by the platformKeyStore, and PEM (for X-509 certificates express in PEM format).trustOptions- the trust options that will be applied to this peer.
- All Implemented Interfaces:
TrustProvider
public record TrustStore(String storeFile, PasswordProvider storePasswordProvider, String storeType, TrustOptions trustOptions)
extends Record
implements TrustProvider
A
TrustProvider backed by a Java Truststore.-
Constructor Summary
ConstructorsConstructorDescriptionTrustStore(String storeFile, PasswordProvider storePasswordProvider, String storeType) ATrustProviderbacked by a Java Truststore.TrustStore(String storeFile, PasswordProvider storePasswordProvider, String storeType, TrustOptions trustOptions) Creates an instance of aTrustStorerecord class. -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(TrustProviderVisitor<T> visitor) Visits the trust providerTrustProviderVisitor.final booleanIndicates whether some other object is "equal to" this one.getType()final inthashCode()Returns a hash code value for this object.booleanReturns the value of thestoreFilerecord component.Returns the value of thestorePasswordProviderrecord component.Returns the value of thestoreTyperecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetrustOptionsrecord component.
-
Constructor Details
-
TrustStore
public TrustStore(String storeFile, @Nullable PasswordProvider storePasswordProvider, @Nullable String storeType, @Nullable TrustOptions trustOptions) Creates an instance of aTrustStorerecord class.- Parameters:
storeFile- the value for thestoreFilerecord componentstorePasswordProvider- the value for thestorePasswordProviderrecord componentstoreType- the value for thestoreTyperecord componenttrustOptions- the value for thetrustOptionsrecord component
-
TrustStore
public TrustStore(String storeFile, @Nullable PasswordProvider storePasswordProvider, @Nullable String storeType) ATrustProviderbacked by a Java Truststore.- Parameters:
storeFile- location of a key store, or reference to a PEM file containing both private-key/certificate/intermediates.storePasswordProvider- provider for the store password or null if store does not require a password.storeType- specifies the server key type. Legal values are those types supported by the platformKeyStore, and PEM (for X-509 certificates express in PEM format).
-
-
Method Details
-
getType
-
isPemType
public boolean isPemType() -
accept
Description copied from interface:TrustProviderVisits the trust providerTrustProviderVisitor. Implementor should call one `visit` method on visitor.- Specified by:
acceptin interfaceTrustProvider- Parameters:
visitor- visitor.
-
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). -
storeFile
Returns the value of thestoreFilerecord component.- Returns:
- the value of the
storeFilerecord component
-
storePasswordProvider
Returns the value of thestorePasswordProviderrecord component.- Returns:
- the value of the
storePasswordProviderrecord component
-
storeType
Returns the value of thestoreTyperecord component.- Returns:
- the value of the
storeTyperecord component
-
trustOptions
Returns the value of thetrustOptionsrecord component.- Specified by:
trustOptionsin interfaceTrustProvider- Returns:
- the value of the
trustOptionsrecord component
-