Package com.tuladb
Record Class LedgerClient.TlsOptions
java.lang.Object
java.lang.Record
com.tuladb.LedgerClient.TlsOptions
- Enclosing class:
LedgerClient
-
Constructor Summary
ConstructorsConstructorDescriptionTlsOptions(boolean enabled, boolean verifyPeer, String caFile, String certFile, String keyFile, String serverName) Creates an instance of aTlsOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncaFile()Returns the value of thecaFilerecord component.certFile()Returns the value of thecertFilerecord component.static LedgerClient.TlsOptionsdisabled()booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.static LedgerClient.TlsOptionsfromEnv()final inthashCode()Returns a hash code value for this object.keyFile()Returns the value of thekeyFilerecord component.Returns the value of theserverNamerecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theverifyPeerrecord component.
-
Constructor Details
-
TlsOptions
public TlsOptions(boolean enabled, boolean verifyPeer, String caFile, String certFile, String keyFile, String serverName) Creates an instance of aTlsOptionsrecord class.- Parameters:
enabled- the value for theenabledrecord componentverifyPeer- the value for theverifyPeerrecord componentcaFile- the value for thecaFilerecord componentcertFile- the value for thecertFilerecord componentkeyFile- the value for thekeyFilerecord componentserverName- the value for theserverNamerecord component
-
-
Method Details
-
disabled
-
fromEnv
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
verifyPeer
public boolean verifyPeer()Returns the value of theverifyPeerrecord component.- Returns:
- the value of the
verifyPeerrecord component
-
caFile
Returns the value of thecaFilerecord component.- Returns:
- the value of the
caFilerecord component
-
certFile
Returns the value of thecertFilerecord component.- Returns:
- the value of the
certFilerecord component
-
keyFile
Returns the value of thekeyFilerecord component.- Returns:
- the value of the
keyFilerecord component
-
serverName
Returns the value of theserverNamerecord component.- Returns:
- the value of the
serverNamerecord component
-