Class DatabaseCloser

java.lang.Object
org.mozilla.jss.DatabaseCloser

public abstract class DatabaseCloser extends Object
A class for closing databases. Since closing the databases is very dangerous and breaks the JSS model, it may only be done from special applications. This class should be subclasses by authorized subclasses. It cannot be instantiated itself.
  • Field Details

    • authorizedClosers

      private static final String[] authorizedClosers
  • Constructor Details

    • DatabaseCloser

      public DatabaseCloser() throws Exception
      Creates a new DatabaseCloser. This should only be called from an authorized subclass. This class cannot itself be instantiated.
      Throws:
      Exception - If the instantiation is not a valid subclass.
  • Method Details

    • closeDatabases

      protected void closeDatabases()
      Closes the certificate and key databases. This is extremely dangerous.