|
Oracle Fusion Middleware Oracle WebLogic Server 10.3.1 API Reference 11g Release 1 (10.3.1) Part Number E13941-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweblogic.security.acl.Security
public final class 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()
Deprecated. |
Method Summary | |
---|---|
static void |
checkPermission(Principal principal,
String aclName,
Permission permission,
char sep)
Deprecated. Determines whether the specified Principal has the specified permission, according to Acls in the WebLogic realm. |
static void |
checkPermission(Principal principal,
String aclName,
Permission permission,
char sep,
Acl dflt)
Deprecated. Determines whether the specified Principal has the specified permission, according to Acls in the WebLogic realm. |
static void |
checkPermission(String aclName,
Permission permission,
char sep)
Deprecated. Determines whether the current user has the specified permission, according to Acls in the WebLogic realm. |
static void |
checkPermission(String subsystem,
Principal principal,
String aclName,
Permission permission,
char sep)
Deprecated. |
static void |
checkPermission(String subsystem,
Principal principal,
String aclName,
Permission permission,
char sep,
Acl dflt)
Deprecated. |
static void |
checkPermission(String subsystem,
String aclName,
Permission permission,
char sep)
Deprecated. |
static Object |
doAsPrivileged(UserInfo newUser,
PrivilegedAction action)
Deprecated. Set a new user to the thread for the running of the input action. |
static Object |
doAsPrivileged(UserInfo newUser,
PrivilegedExceptionAction action)
Deprecated. Set a new user to the thread for running of the input action. |
static User |
getCurrentUser()
Deprecated. 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()
Deprecated. Returns the cumulative number of invalid logins attempted on this server |
static long |
getInvalidLoginUsersHighCount()
Deprecated. Gets the highwater number of users with outstanding invalid login attempts for this server |
static long |
getLockedUsersCurrentCount()
Deprecated. Returnss the number of currently locked users on this server |
static long |
getLoginAttemptsWhileLockedTotalCount()
Deprecated. Returns the cumulative number of invalid logins attempted on this server attempted while the user was locked |
static PasswordGuessing |
getPasswordGuessing()
Deprecated. Return the PasswordGuessing object used to protect against Dictionary attacks. |
static BasicRealm |
getRealm()
Deprecated. If you are using Compatibility Security in WebLogic Server 7.0 or later, returns the WebLogic realm; otherwise, returns Null. |
static String |
getThreadCurrentUserName()
Deprecated. Returns this thread's current user's name if there is a current user, null otherwise |
static long |
getUnlockedUsersTotalCount()
Deprecated. Returns the number times we have unlocked a user on this server |
static User |
getUser(String name,
Object credential)
Deprecated. Gets the User for the specified username and credential. |
static UserInfo |
getUserInfo(String name,
Object credential)
Deprecated. Gets the UserInfo for the specified username and credential. |
static long |
getUserLockoutTotalCount()
Deprecated. Returns the cumulative number of user lockouts done on this server |
static boolean |
hasPermission(Principal principal,
String aclName,
Permission permission,
char sep)
Deprecated. Determines whether the specified Principal has the specified permission, according to Acls in the WebLogic realm. |
static boolean |
hasPermission(Principal principal,
String aclName,
Permission permission,
char sep,
Acl dflt)
Deprecated. Determines whether the specified Principal has the specified permission, according to Acls in the WebLogic realm. |
static boolean |
hasPermission(Principal principal,
String aclName,
String permission,
char sep)
Deprecated. Determines whether the specified Principal has a permission of the specified name, according to Acls in the WebLogic realm. |
static boolean |
hasPermission(String aclName,
Permission permission,
char sep)
Deprecated. Determines whether the current user has the specified permission, according to Acls in the WebLogic realm. |
static boolean |
hasPermission(String aclName,
Permission permission,
char sep,
Acl dflt)
Deprecated. Determines whether the current user has the specified permission, according to Acls in the WebLogic realm. |
static boolean |
hasPermission(String subsystem,
Principal principal,
String aclName,
Permission permission,
char sep)
Deprecated. |
static boolean |
hasPermission(String subsystem,
Principal principal,
String aclName,
Permission permission,
char sep,
Acl dflt)
Deprecated. |
static boolean |
hasPermission(String subsystem,
Principal principal,
String aclName,
String permission,
char sep)
Deprecated. |
static void |
init(BasicRealm aRealm)
Deprecated. Initializes the specified BasicRealm. |
static void |
logAndThrow(String msg)
Deprecated. Makes an entry in the security log and throws an exception. |
static void |
receiveSecurityMessage(weblogic.rmi.spi.HostID sender,
SecurityMessage sm)
Deprecated. 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(Principal principal, String aclName, String permission, char sep)
principal
- Principal to be checkedaclName
- ACL to be matchedpermission
- Permission to be matchedsep
- Character delimiter for ACL
public static boolean hasPermission(String subsystem, Principal principal, String aclName, String permission, char sep)
public static boolean hasPermission(Principal principal, String aclName, Permission permission, char sep)
principal
- Principal to be checkedaclName
- ACL to be matchedpermission
- Permission objectsep
- Character delimiter for ACL
public static boolean hasPermission(String subsystem, Principal principal, String aclName, Permission permission, char sep)
public static boolean hasPermission(Principal principal, String aclName, Permission permission, char sep, Acl dflt)
principal
- Principal to be checkedaclName
- ACL to be matchedpermission
- Permission objectsep
- Character delimiter for ACLdflt
- Default ACL to be used if no ACL is found
public static boolean hasPermission(String subsystem, Principal principal, String aclName, Permission permission, char sep, Acl dflt)
public static boolean hasPermission(String aclName, Permission permission, char sep)
aclName
- ACL to be matchedpermission
- Permission objectsep
- Character delimiter for ACL
public static boolean hasPermission(String aclName, Permission permission, char sep, Acl dflt)
aclName
- ACL to be matchedpermission
- Permission objectsep
- Character delimiter for ACLdflt
- Default ACL to be used if no ACL is found
public static String getThreadCurrentUserName()
public static User getCurrentUser()
public static void checkPermission(Principal principal, String aclName, Permission permission, char sep, Acl dflt) throws SecurityException
Makes an entry in the security log and throws an exception on failure.
principal
- Principal to be checkedaclName
- ACL to be matchedpermission
- Permission objectsep
- Character delimiter for ACLdflt
- Default ACL to be used if no ACL is found
SecurityException
- if the
permission check failspublic static void checkPermission(String subsystem, Principal principal, String aclName, Permission permission, char sep, Acl dflt) throws SecurityException
SecurityException
public static void checkPermission(Principal principal, String aclName, Permission permission, char sep) throws SecurityException
Makes an entry in the security log and throws an exception on failure.
principal
- Principal to be checkedaclName
- ACL to be matchedpermission
- Permission objectsep
- Character delimiter for ACL
SecurityException
- if the
permission check failspublic static void checkPermission(String subsystem, Principal principal, String aclName, Permission permission, char sep) throws SecurityException
SecurityException
public static void checkPermission(String aclName, Permission permission, char sep) throws SecurityException
Makes an entry in the security log and throws an exception on failure.
aclName
- ACL to be matchedpermission
- Permission objectsep
- Character delimiter for ACL
SecurityException
- if the
permission check failspublic static void checkPermission(String subsystem, String aclName, Permission permission, char sep) throws SecurityException
SecurityException
public static UserInfo getUserInfo(String name, Object credential)
name
- Name of usercredential
- Credential of user
public static User getUser(String name, Object credential)
name
- Name of usercredential
- Credential of user
public static void logAndThrow(String msg) throws SecurityException
msg
- Security-related msg to add to the exception
SecurityException
- if
the log cannot be accessedpublic static void init(BasicRealm aRealm)
aRealm
- Realm to be initializedpublic static 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 user
public static Object doAsPrivileged(UserInfo newUser, PrivilegedExceptionAction action) throws Exception
newUser
- UserInfo of the user to be set to the threadaction
- runnable action to execute on behalf of the user
Exception
SecurityException
- if unable to authenticate the new 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 PasswordGuessing getPasswordGuessing()
public static void receiveSecurityMessage(weblogic.rmi.spi.HostID sender, SecurityMessage sm)
|
Documentation is available at http://download.oracle.com/docs/cd/E12839_01/web.1111/wls.htm Copyright 1996, 2009, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Oracle WebLogic Server 10.3.1 API Reference 11g Release 1 (10.3.1) Part Number E13941-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |