Package io.kroxylicious.proxy.config.tls
Record Class InsecureTls
java.lang.Object
java.lang.Record
io.kroxylicious.proxy.config.tls.InsecureTls
- Record Components:
insecure- true if trust is disabled. If false, platform trust is used.
- All Implemented Interfaces:
TrustProvider
A
TrustProvider that allows the disabling trust verification.
Not recommended for production use.-
Constructor Summary
ConstructorsConstructorDescriptionInsecureTls(boolean insecure) Creates an instance of aInsecureTlsrecord 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.final inthashCode()Returns a hash code value for this object.booleaninsecure()Returns the value of theinsecurerecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.kroxylicious.proxy.config.tls.TrustProvider
trustOptions
-
Constructor Details
-
InsecureTls
public InsecureTls(boolean insecure) Creates an instance of aInsecureTlsrecord class.- Parameters:
insecure- the value for theinsecurerecord component
-
-
Method Details
-
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 with '=='. -
insecure
public boolean insecure()Returns the value of theinsecurerecord component.- Returns:
- the value of the
insecurerecord component
-