Package org.apache.cassandra.security
Class JREProvider
- java.lang.Object
-
- org.apache.cassandra.security.AbstractCryptoProvider
-
- org.apache.cassandra.security.JREProvider
-
public class JREProvider extends AbstractCryptoProvider
Crypto provider which does nothing. Handy for situations when a user wants to completely bypass crypto provider installation.
-
-
Field Summary
-
Fields inherited from class org.apache.cassandra.security.AbstractCryptoProvider
FAIL_ON_MISSING_PROVIDER_KEY, failOnMissingProvider, logger
-
-
Constructor Summary
Constructors Constructor Description JREProvider(java.util.Map<java.lang.String,java.lang.String> properties)
-
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()
protected java.lang.Runnable
installator()
Returns a runnable which installs this crypto provider.protected 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
protected 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
protected 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
-
-