Package org.apache.cassandra.security
Class DisableSslContextFactory
java.lang.Object
org.apache.cassandra.security.AbstractSslContextFactory
org.apache.cassandra.security.DisableSslContextFactory
- All Implemented Interfaces:
ISslContextFactory
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.cassandra.security.ISslContextFactory
ISslContextFactory.SocketType -
Field Summary
Fields inherited from class org.apache.cassandra.security.AbstractSslContextFactory
accepted_protocols, algorithm, cipher_suites, enabled, openSslIsAvailable, optional, parameters, protocol, require_client_auth, require_endpoint_verification, store_type, TLS_PROTOCOL_SUBSTITUTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected KeyManagerFactoryprotected KeyManagerFactoryCreate aKeyManagerFactoryfor outbound connections.protected TrustManagerFactorybooleanReturns if this factory uses private keystore.booleanReturns if this factory uses outbound keystore.voidInitializes hot reloading of the security keys/certs.booleanReturns if any changes require the reloading of the SSL context returned by this factory.Methods inherited from class org.apache.cassandra.security.AbstractSslContextFactory
createJSSESslContext, createNettySslContext, deriveIfOpenSslAvailable, getAcceptedProtocols, getBoolean, getBoolean, getCipherSuites, getSslProvider, getString, getString, getStringList
-
Constructor Details
-
DisableSslContextFactory
public DisableSslContextFactory()
-
-
Method Details
-
buildKeyManagerFactory
- Specified by:
buildKeyManagerFactoryin classAbstractSslContextFactory- Throws:
SSLException
-
buildTrustManagerFactory
- Specified by:
buildTrustManagerFactoryin classAbstractSslContextFactory- Throws:
SSLException
-
buildOutboundKeyManagerFactory
Description copied from class:AbstractSslContextFactoryCreate aKeyManagerFactoryfor outbound connections. It provides a seperate keystore for internode mTLS outbound connections.- Specified by:
buildOutboundKeyManagerFactoryin classAbstractSslContextFactory- Returns:
KeyManagerFactory- Throws:
SSLException
-
hasKeystore
public boolean hasKeystore()Description copied from interface:ISslContextFactoryReturns if this factory uses private keystore.- Returns:
trueby default unless the implementation overrides this
-
hasOutboundKeystore
public boolean hasOutboundKeystore()Description copied from interface:ISslContextFactoryReturns if this factory uses outbound keystore.- Returns:
trueby default unless the implementation overrides this
-
initHotReloading
Description copied from interface:ISslContextFactoryInitializes hot reloading of the security keys/certs. The implementation must guarantee this to be thread safe.- Throws:
SSLException
-
shouldReload
public boolean shouldReload()Description copied from interface:ISslContextFactoryReturns if any changes require the reloading of the SSL context returned by this factory. This will be called by Cassandra's periodic polling for any potential changes that will reload the SSL context. However only newer connections established after the reload will use the reloaded SSL context.- Returns:
trueif SSL Context needs to be reload;falseotherwise
-