| Modifier and Type | Field and Description |
|---|---|
| private static final SystemPermission | USE_DERBY_INTERNALS
Permission to access Derby contexts (permissions are immutable). |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static void | |
| public static void | checkSubjectHasPermission(final Subject
the subject representing the SystemPrincipal(s) subject, final Permission the permission to be checked perm)Checks that a Subject has a Permission under the SecurityManager. |
| public static void | checkUserHasPermission(String
the user to be check for having the permission user, Permission the permission to be checked perm)Checks that a User has a Permission under the SecurityManager. |
| public static Subject | Returns: a Subject representing the user by its exact and normalized namethe user name user)Creates a (read-only) Subject representing a given user as a System user within Derby. |
| private static String | Returns: the authorization identifier for this principalthe name of the principal name)Returns the Authorization Identifier for a principal name. |
| private static Context | getContextOrNull(final String contextID)
Must be private so that user code can't call this entry point. |
| USE_DERBY_INTERNALS | back to summary |
|---|---|
| private static final SystemPermission USE_DERBY_INTERNALS Permission to access Derby contexts (permissions are immutable). | |
| SecurityUtil | back to summary |
|---|---|
| public SecurityUtil() | |
| authorize | back to summary |
|---|---|
| public static void authorize(Securable operation) throws StandardException Raise an exception if the current user does not have permission to perform the indicated operation. | |
| checkDerbyInternalsPrivilege | back to summary |
|---|---|
| public static void checkDerbyInternalsPrivilege() Verify that we have been granted permission to use Derby internals. This is a NOP now that Derby no longer uses a SecurityManager. | |
| checkSubjectHasPermission | back to summary |
|---|---|
| public static void checkSubjectHasPermission(final Subject subject, final Permission perm) Checks that a Subject has a Permission under the SecurityManager. To perform this check the following policy grant is required. This method is a NOP now that Derby does not use a SecurityManager.
| |
| checkUserHasPermission | back to summary |
|---|---|
| public static void checkUserHasPermission(String user, Permission perm) Checks that a User has a Permission under the SecurityManager. To perform this check the following policy grant is required. This method is a NOP now that Derby no longer uses a SecurityManager.
| |
| createSystemPrincipalSubject | back to summary |
|---|---|
| public static Subject createSystemPrincipalSubject(String user) Creates a (read-only) Subject representing a given user as a System user within Derby.
| |
| getAuthorizationId | back to summary |
|---|---|
| private static String getAuthorizationId(String name) Returns the Authorization Identifier for a principal name. | |
| getContextOrNull | back to summary |
|---|---|
| private static Context getContextOrNull(final String contextID) Must be private so that user code can't call this entry point. | |