Package org.apache.cassandra.security
Class AbstractCryptoProvider
java.lang.Object
org.apache.cassandra.security.AbstractCryptoProvider
- Direct Known Subclasses:
DefaultCryptoProvider,JREProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected final booleanprotected static final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns unmodifiable properties of this crypto providerabstract StringReturns the name of the class which installs specific provider of namegetProviderName().abstract StringReturns name of the provider, as returned fromProvider.getName()voidinstall()The default installation runsinstallator()and after thatisHealthyInstallation().protected abstract RunnableReturns a runnable which installs this crypto provider.protected abstract booleanReturns boolean telling if this provider was installed properly.voidUninstalls this crypto provider of namegetProviderName()
-
Field Details
-
logger
protected static final org.slf4j.Logger logger -
FAIL_ON_MISSING_PROVIDER_KEY
- See Also:
-
failOnMissingProvider
protected final boolean failOnMissingProvider
-
-
Constructor Details
-
AbstractCryptoProvider
-
-
Method Details
-
getProperties
Returns unmodifiable properties of this crypto provider- Returns:
- crypto provider properties
-
getProviderName
Returns name of the provider, as returned fromProvider.getName()- Returns:
- name of the provider
-
getProviderClassAsString
Returns the name of the class which installs specific provider of namegetProviderName().- Returns:
- name of class of provider
-
installator
Returns a runnable which installs this crypto provider.- Returns:
- runnable which installs this provider
-
isHealthyInstallation
Returns boolean telling if this provider was installed properly.- Returns:
trueif provider was installed properly,falseotherwise.- Throws:
Exception
-
install
The default installation runsinstallator()and after thatisHealthyInstallation().If any step fails, it will not throw an exception unless the parameter
FAIL_ON_MISSING_PROVIDER_KEYistrue.- Throws:
Exception
-
uninstall
public void uninstall()Uninstalls this crypto provider of namegetProviderName()- See Also:
-