|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.iapi.security.SecurityUtil
public class SecurityUtil
This class provides helper functions for security-related features.
| Constructor Summary | |
|---|---|
SecurityUtil()
|
|
| Method Summary | |
|---|---|
static void |
checkSubjectHasPermission(javax.security.auth.Subject subject,
java.security.Permission perm)
Checks that a Subject has a Permission under the SecurityManager. |
static void |
checkUserHasPermission(java.lang.String user,
java.security.Permission perm)
Checks that a User has a Permission under the SecurityManager. |
static javax.security.auth.Subject |
createSystemPrincipalSubject(java.lang.String user)
Creates a (read-only) Subject representing a given user as a System user within Derby. |
private static java.lang.String |
getAuthorizationId(java.lang.String name)
Returns the Authorization Identifier for a principal name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SecurityUtil()
| Method Detail |
|---|
public static javax.security.auth.Subject createSystemPrincipalSubject(java.lang.String user)
user - the user name
private static java.lang.String getAuthorizationId(java.lang.String name)
name - the name of the principal
public static void checkSubjectHasPermission(javax.security.auth.Subject subject,
java.security.Permission perm)
subject - the subject representing the SystemPrincipal(s)perm - the permission to be checked
java.security.AccessControlException - if permissions are missing
public static void checkUserHasPermission(java.lang.String user,
java.security.Permission perm)
user - the user to be check for having the permissionperm - the permission to be checked
java.security.AccessControlException - if permissions are missing
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||