Package org.apache.cassandra.security
Class DefaultCryptoProvider
- java.lang.Object
-
- org.apache.cassandra.security.AbstractCryptoProvider
-
- org.apache.cassandra.security.DefaultCryptoProvider
-
public class DefaultCryptoProvider extends AbstractCryptoProvider
Default crypto provider tries to install AmazonCorrettoCryptoProvider.The implementation falls back to in-built crypto provider in JRE if the installation is not successful.
-
-
Field Summary
-
Fields inherited from class org.apache.cassandra.security.AbstractCryptoProvider
FAIL_ON_MISSING_PROVIDER_KEY, failOnMissingProvider, logger
-
-
Constructor Summary
Constructors Constructor Description DefaultCryptoProvider(java.util.Map<java.lang.String,java.lang.String> args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getProviderClassAsString()
Returns the name of the class which installs specific provider of nameAbstractCryptoProvider.getProviderName()
.java.lang.String
getProviderName()
Returns name of the provider, as returned fromProvider.getName()
java.lang.Runnable
installator()
Returns a runnable which installs this crypto provider.boolean
isHealthyInstallation()
Returns boolean telling if this provider was installed properly.-
Methods inherited from class org.apache.cassandra.security.AbstractCryptoProvider
getProperties, install, uninstall
-
-
-
-
Method Detail
-
getProviderName
public java.lang.String getProviderName()
Description copied from class:AbstractCryptoProvider
Returns name of the provider, as returned fromProvider.getName()
- Specified by:
getProviderName
in classAbstractCryptoProvider
- Returns:
- name of the provider
-
getProviderClassAsString
public java.lang.String getProviderClassAsString()
Description copied from class:AbstractCryptoProvider
Returns the name of the class which installs specific provider of nameAbstractCryptoProvider.getProviderName()
.- Specified by:
getProviderClassAsString
in classAbstractCryptoProvider
- Returns:
- name of class of provider
-
installator
public java.lang.Runnable installator()
Description copied from class:AbstractCryptoProvider
Returns a runnable which installs this crypto provider.- Specified by:
installator
in classAbstractCryptoProvider
- Returns:
- runnable which installs this provider
-
isHealthyInstallation
public boolean isHealthyInstallation() throws java.lang.Exception
Description copied from class:AbstractCryptoProvider
Returns boolean telling if this provider was installed properly.- Specified by:
isHealthyInstallation
in classAbstractCryptoProvider
- Returns:
true
if provider was installed properly,false
otherwise.- Throws:
java.lang.Exception
-
-