Class AbstractCryptoProvider

java.lang.Object
org.apache.cassandra.security.AbstractCryptoProvider
Direct Known Subclasses:
DefaultCryptoProvider, JREProvider

public abstract class AbstractCryptoProvider extends Object
  • Field Details

    • logger

      protected static final org.slf4j.Logger logger
    • FAIL_ON_MISSING_PROVIDER_KEY

      public static final String FAIL_ON_MISSING_PROVIDER_KEY
      See Also:
    • failOnMissingProvider

      protected final boolean failOnMissingProvider
  • Constructor Details

    • AbstractCryptoProvider

      public AbstractCryptoProvider(Map<String,String> args)
  • Method Details

    • getProperties

      public Map<String,String> getProperties()
      Returns unmodifiable properties of this crypto provider
      Returns:
      crypto provider properties
    • getProviderName

      public abstract String getProviderName()
      Returns name of the provider, as returned from Provider.getName()
      Returns:
      name of the provider
    • getProviderClassAsString

      public abstract String getProviderClassAsString()
      Returns the name of the class which installs specific provider of name getProviderName().
      Returns:
      name of class of provider
    • installator

      protected abstract Runnable installator()
      Returns a runnable which installs this crypto provider.
      Returns:
      runnable which installs this provider
    • isHealthyInstallation

      protected abstract boolean isHealthyInstallation() throws Exception
      Returns boolean telling if this provider was installed properly.
      Returns:
      true if provider was installed properly, false otherwise.
      Throws:
      Exception
    • install

      public void install() throws Exception
      The default installation runs installator() and after that isHealthyInstallation().

      If any step fails, it will not throw an exception unless the parameter FAIL_ON_MISSING_PROVIDER_KEY is true.

      Throws:
      Exception
    • uninstall

      public void uninstall()
      Uninstalls this crypto provider of name getProviderName()
      See Also: