Class DiagUtil

java.lang.Object
org.apache.derby.diag.DiagUtil

abstract class DiagUtil extends Object
Utility methods for the package of diagnostic vtis.
  • Constructor Details

    • DiagUtil

      DiagUtil()
  • Method Details

    • checkAccess

      static void checkAccess() throws StandardException
      Raise an exception if we are running with SQL authorization turned on but the current user isn't the database owner. This method is used to restrict access to VTIs which disclose sensitive information. See DERBY-5395.
      Throws:
      StandardException
    • getContextOrNull

      private static Context getContextOrNull(String contextID)
      Privileged lookup of a Context. Must be private so that user code can't call this entry point.