java.lang.Object
java.lang.Record
org.neo4j.driver.internal.bolt.api.SecurityPlanImpl
- All Implemented Interfaces:
SecurityPlan
public record SecurityPlanImpl(boolean requiresEncryption, boolean requiresClientAuth, SSLContext sslContext, boolean requiresHostnameVerification)
extends Record
implements SecurityPlan
A SecurityPlan consists of encryption and trust details.
-
Field Summary
Fields inherited from interface org.neo4j.driver.internal.bolt.api.SecurityPlan
INSECURE -
Constructor Summary
ConstructorsConstructorDescriptionSecurityPlanImpl(boolean requiresEncryption, boolean requiresClientAuth, SSLContext sslContext, boolean requiresHostnameVerification) Creates an instance of aSecurityPlanImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of therequiresClientAuthrecord component.booleanReturns the value of therequiresEncryptionrecord component.booleanReturns the value of therequiresHostnameVerificationrecord component.Returns the value of thesslContextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SecurityPlanImpl
public SecurityPlanImpl(boolean requiresEncryption, boolean requiresClientAuth, SSLContext sslContext, boolean requiresHostnameVerification) Creates an instance of aSecurityPlanImplrecord class.- Parameters:
requiresEncryption- the value for therequiresEncryptionrecord componentrequiresClientAuth- the value for therequiresClientAuthrecord componentsslContext- the value for thesslContextrecord componentrequiresHostnameVerification- the value for therequiresHostnameVerificationrecord component
-
-
Method Details
-
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 '=='. -
requiresEncryption
public boolean requiresEncryption()Returns the value of therequiresEncryptionrecord component.- Specified by:
requiresEncryptionin interfaceSecurityPlan- Returns:
- the value of the
requiresEncryptionrecord component
-
requiresClientAuth
public boolean requiresClientAuth()Returns the value of therequiresClientAuthrecord component.- Specified by:
requiresClientAuthin interfaceSecurityPlan- Returns:
- the value of the
requiresClientAuthrecord component
-
sslContext
Returns the value of thesslContextrecord component.- Specified by:
sslContextin interfaceSecurityPlan- Returns:
- the value of the
sslContextrecord component
-
requiresHostnameVerification
public boolean requiresHostnameVerification()Returns the value of therequiresHostnameVerificationrecord component.- Specified by:
requiresHostnameVerificationin interfaceSecurityPlan- Returns:
- the value of the
requiresHostnameVerificationrecord component
-