Package org.apache.derby.diag
Class DiagUtil
- java.lang.Object
-
- org.apache.derby.diag.DiagUtil
-
abstract class DiagUtil extends java.lang.Object
Utility methods for the package of diagnostic vtis.
-
-
Constructor Summary
Constructors Constructor Description DiagUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static void
checkAccess()
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(java.lang.String contextID)
Privileged lookup of a Context.
-
-
-
Method Detail
-
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(java.lang.String contextID)
Privileged lookup of a Context. Must be private so that user code can't call this entry point.
-
-