Package org.apache.derby.diag
Class DiagUtil
java.lang.Object
org.apache.derby.diag.DiagUtil
Utility methods for the package of diagnostic vtis.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static void
Raise an exception if we are running with SQL authorization turned on but the current user isn't the database owner.private static Context
getContextOrNull
(String contextID) Privileged lookup of a Context.
-
Constructor Details
-
DiagUtil
DiagUtil()
-
-
Method Details
-
checkAccess
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
Privileged lookup of a Context. Must be private so that user code can't call this entry point.
-