|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.security.acl.Security
The Security class groups static functions for accessing the default realm and authentication contexts for threads. For security reasons, the methods in this class may only be executed from within WebLogic's VM. Each method requires access to a realm and its ACLs, users, and groups, none of which a client application can access.
Constructor Summary | |
Security()
|
Method Summary | |
static void |
checkPermission(java.security.Principal principal,
java.lang.String aclName,
java.security.acl.Permission permission,
char sep)
Determines whether the specified Principal has the specified permission, according to Acls in the WebLogic realm. |
static void |
checkPermission(java.security.Principal principal,
java.lang.String aclName,
java.security.acl.Permission permission,
char sep,
java.security.acl.Acl dflt)
Determines whether the specified Principal has the specified permission, according to Acls in the WebLogic realm. |
static void |
checkPermission(java.lang.String aclName,
java.security.acl.Permission permission,
char sep)
Determines whether the current user has the specified permission, according to Acls in the WebLogic realm. |
static void |
checkPermission(java.lang.String subsystem,
java.security.Principal principal,
java.lang.String aclName,
java.security.acl.Permission permission,
char sep)
|
static void |
checkPermission(java.lang.String subsystem,
java.security.Principal principal,
java.lang.String aclName,
java.security.acl.Permission permission,
char sep,
java.security.acl.Acl dflt)
|
static void |
checkPermission(java.lang.String subsystem,
java.lang.String aclName,
java.security.acl.Permission permission,
char sep)
|
static java.lang.Object |
doAsPrivileged(UserInfo newUser,
PrivilegedAction action)
Set a new user to the thread for the running of the input action. |
static java.lang.Object |
doAsPrivileged(UserInfo newUser,
PrivilegedExceptionAction action)
Set a new user to the thread for running of the input action. |
static User |
getCurrentUser()
Returns the current user, which is either user information associated with the thread or the special user "guest." if no user has been set. |
static long |
getInvalidLoginAttemptsTotalCount()
Returns the cumulative number of invalid logins attempted on this server |
static long |
getInvalidLoginUsersHighCount()
Gets the highwater number of users with outstanding invalid login attempts for this server |
static long |
getLockedUsersCurrentCount()
Returnss the number of currently locked users on this server |
static long |
getLoginAttemptsWhileLockedTotalCount()
Returns the cumulative number of invalid logins attempted on this server attempted while the user was locked |
static weblogic.security.acl.PasswordGuessing |
getPasswordGuessing()
Return the PasswordGuessing object used to protect against Dictionary attacks. |
static BasicRealm |
getRealm()
Returns the WebLogic realm. |
static java.lang.String |
getThreadCurrentUserName()
Returns this thread's current user's name if there is a current user, null otherwise |
static long |
getUnlockedUsersTotalCount()
Returns the number times we have unlocked a user on this server |
static User |
getUser(java.lang.String name,
java.lang.Object credential)
Gets the User for the specified username and credential. |
static UserInfo |
getUserInfo(java.lang.String name,
java.lang.Object credential)
Gets the UserInfo for the specified username and credential. |
static long |
getUserLockoutTotalCount()
Returns the cumulative number of user lockouts done on this server |
static boolean |
hasPermission(java.security.Principal principal,
java.lang.String aclName,
java.security.acl.Permission permission,
char sep)
Determines whether the specified Principal has the specified permission, according to Acls in the WebLogic realm. |
static boolean |
hasPermission(java.security.Principal principal,
java.lang.String aclName,
java.security.acl.Permission permission,
char sep,
java.security.acl.Acl dflt)
Determines whether the specified Principal has the specified permission, according to Acls in the WebLogic realm. |
static boolean |
hasPermission(java.security.Principal principal,
java.lang.String aclName,
java.lang.String permissionName,
char sep)
Determines whether the specified Principal has a permission of the specified name, according to Acls in the WebLogic realm. |
static boolean |
hasPermission(java.lang.String aclName,
java.security.acl.Permission permission,
char sep)
Determines whether the current user has the specified permission, according to Acls in the WebLogic realm. |
static boolean |
hasPermission(java.lang.String aclName,
java.security.acl.Permission permission,
char sep,
java.security.acl.Acl dflt)
Determines whether the current user has the specified permission, according to Acls in the WebLogic realm. |
static boolean |
hasPermission(java.lang.String subsystem,
java.security.Principal principal,
java.lang.String aclName,
java.security.acl.Permission permission,
char sep)
|
static boolean |
hasPermission(java.lang.String subsystem,
java.security.Principal principal,
java.lang.String aclName,
java.security.acl.Permission permission,
char sep,
java.security.acl.Acl dflt)
|
static boolean |
hasPermission(java.lang.String subsystem,
java.security.Principal principal,
java.lang.String aclName,
java.lang.String permissionName,
char sep)
|
static void |
init(BasicRealm aRealm)
Initializes the specified BasicRealm. |
static void |
logAndThrow(java.lang.String msg)
Makes an entry in the security log and throws an exception. |
static void |
receiveSecurityMessage(weblogic.rjvm.JVMID sender,
weblogic.security.acl.SecurityMessage sm)
Processes a SecurityLoginState message from a remote server. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Security()
Method Detail |
public static BasicRealm getRealm()
public static boolean hasPermission(java.security.Principal principal, java.lang.String aclName, java.lang.String permissionName, char sep)
principal
- Principal to be checkedaclName
- ACL to be matchedpermissionName
- Permission to be matchedsep
- Character delimiter for ACLpublic static boolean hasPermission(java.lang.String subsystem, java.security.Principal principal, java.lang.String aclName, java.lang.String permissionName, char sep)
public static boolean hasPermission(java.security.Principal principal, java.lang.String aclName, java.security.acl.Permission permission, char sep)
principal
- Principal to be checkedaclName
- ACL to be matchedpermissionName
- Permission objectsep
- Character delimiter for ACLpublic static boolean hasPermission(java.lang.String subsystem, java.security.Principal principal, java.lang.String aclName, java.security.acl.Permission permission, char sep)
public static boolean hasPermission(java.security.Principal principal, java.lang.String aclName, java.security.acl.Permission permission, char sep, java.security.acl.Acl dflt)
principal
- Principal to be checkedaclName
- ACL to be matchedpermissionName
- Permission objectsep
- Character delimiter for ACLdflt
- Default ACL to be used if no ACL is foundpublic static boolean hasPermission(java.lang.String subsystem, java.security.Principal principal, java.lang.String aclName, java.security.acl.Permission permission, char sep, java.security.acl.Acl dflt)
public static boolean hasPermission(java.lang.String aclName, java.security.acl.Permission permission, char sep)
aclName
- ACL to be matchedpermissionName
- Permission objectsep
- Character delimiter for ACLpublic static boolean hasPermission(java.lang.String aclName, java.security.acl.Permission permission, char sep, java.security.acl.Acl dflt)
aclName
- ACL to be matchedpermissionName
- Permission objectsep
- Character delimiter for ACLdflt
- Default ACL to be used if no ACL is foundpublic static java.lang.String getThreadCurrentUserName()
public static User getCurrentUser()
public static void checkPermission(java.security.Principal principal, java.lang.String aclName, java.security.acl.Permission permission, char sep, java.security.acl.Acl dflt) throws java.lang.SecurityException
Makes an entry in the security log and throws an exception on failure.
principal
- Principal to be checkedaclName
- ACL to be matchedpermissionName
- Permission objectsep
- Character delimiter for ACLdflt
- Default ACL to be used if no ACL is foundpublic static void checkPermission(java.lang.String subsystem, java.security.Principal principal, java.lang.String aclName, java.security.acl.Permission permission, char sep, java.security.acl.Acl dflt) throws java.lang.SecurityException
public static void checkPermission(java.security.Principal principal, java.lang.String aclName, java.security.acl.Permission permission, char sep) throws java.lang.SecurityException
Makes an entry in the security log and throws an exception on failure.
principal
- Principal to be checkedaclName
- ACL to be matchedpermissionName
- Permission objectsep
- Character delimiter for ACLpublic static void checkPermission(java.lang.String subsystem, java.security.Principal principal, java.lang.String aclName, java.security.acl.Permission permission, char sep) throws java.lang.SecurityException
public static void checkPermission(java.lang.String aclName, java.security.acl.Permission permission, char sep) throws java.lang.SecurityException
Makes an entry in the security log and throws an exception on failure.
aclName
- ACL to be matchedpermissionName
- Permission objectsep
- Character delimiter for ACLpublic static void checkPermission(java.lang.String subsystem, java.lang.String aclName, java.security.acl.Permission permission, char sep) throws java.lang.SecurityException
public static UserInfo getUserInfo(java.lang.String name, java.lang.Object credential)
name
- Name of usercredential
- Credential of userpublic static User getUser(java.lang.String name, java.lang.Object credential)
name
- Name of usercredential
- Credential of userpublic static void logAndThrow(java.lang.String msg) throws java.lang.SecurityException
msg
- Security-related msg to add to the exceptionpublic static void init(BasicRealm aRealm)
aRealm
- Realm to be initializedpublic static java.lang.Object doAsPrivileged(UserInfo newUser, PrivilegedAction action)
newUser
- UserInfo of the user to be set to the threadaction
- runnable action to take on behalf of the userpublic static java.lang.Object doAsPrivileged(UserInfo newUser, PrivilegedExceptionAction action) throws java.lang.Exception
newUser
- UserInfo of the user to be set to the threadaction
- runnable action to execute on behalf of the userpublic static long getUserLockoutTotalCount()
public static long getInvalidLoginAttemptsTotalCount()
public static long getLoginAttemptsWhileLockedTotalCount()
public static long getInvalidLoginUsersHighCount()
public static long getUnlockedUsersTotalCount()
public static long getLockedUsersCurrentCount()
public static weblogic.security.acl.PasswordGuessing getPasswordGuessing()
public static void receiveSecurityMessage(weblogic.rjvm.JVMID sender, weblogic.security.acl.SecurityMessage sm)
|
Documentation is available at http://e-docs.bea.com/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |