|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectweblogic.security.acl.AbstractListableRealm
weblogic.security.acl.AbstractManageableRealm
com.opensymphony.user.adapter.weblogic61.OSUserRealm
This class implements a WebLogic security realm which bridges to the OSUser library. Basically, this adapter will intercept the WebLogic Realm API calls and delegate those calls to OSUser.
The typical steps involved in "installing" this adapter as a security realm under WebLogic 6.1 are as follows:
| Constructor Summary | |
OSUserRealm()
The empty constructor required for instantiation and installation by WebLogic |
|
| Method Summary | |
protected weblogic.security.acl.User |
authUserPassword(java.lang.String username,
java.lang.String password)
Override the authUserPassword method. |
void |
deleteGroup(java.security.acl.Group group)
Delete a group in the OSUser-specific way. |
void |
deleteUser(weblogic.security.acl.User user)
Delete a user in the OSUser-specific way. |
weblogic.logging.LogOutputStream |
getDebugLog()
|
java.security.acl.Group |
getGroup(java.lang.String name)
Override the getGroup method to retreive the requested group from the OSUser UserManager, then wrap that OSUser group in the wrapper. |
protected java.util.Hashtable |
getGroupMembersInternal(java.lang.String name)
Override the getGroupMembersInternal method to return group membership data upon request. |
java.util.Enumeration |
getGroups()
Override the getGroups method in order to create the Enumeration wrapper. |
weblogic.security.acl.User |
getUser(java.lang.String name)
Override the getUser method to retreive the requested user from the OSUser UserManager, then wrap that OSUser user in the wrapper. |
java.util.Enumeration |
getUsers()
Override the getUsers method in order to create the Enumeration wrapper. |
void |
init(java.lang.String name,
java.lang.Object owner)
Override the BasicRealm's init method to delay initialization of this realm to allow OSUser to get deployed... |
java.security.acl.Group |
newGroup(java.lang.String name)
Creates a group in the OSUser-specific way, then wraps that new group in a OSUserRealmGroup instance for return. |
weblogic.security.acl.User |
newUser(java.lang.String name,
java.lang.Object credential,
java.lang.Object constraints)
Creates a user in the OSUser-specific way, then wraps that new user in a OSUserRealmUser instance for return. |
void |
setDebug(boolean enable)
|
| Methods inherited from class weblogic.security.acl.AbstractManageableRealm |
deleteAcl, deletePermission, newAcl, newPermission, setPermission |
| Methods inherited from class weblogic.security.acl.AbstractListableRealm |
authCertificates, authenticate, authInternal, authSSLCertificates, getAcl, getAcl, getAclOwner, getAcls, getDelegator, getGroupMembers, getName, getPermission, getPermissions, getUser, load, save, setDelegator |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface weblogic.security.acl.ListableRealm |
getAcls, getPermissions |
| Methods inherited from interface weblogic.security.acl.BasicRealm |
getAcl, getAcl, getAclOwner, getName, getPermission, getUser, load, save |
| Constructor Detail |
public OSUserRealm()
| Method Detail |
public void setDebug(boolean enable)
setDebug in interface weblogic.security.acl.DebuggableRealmpublic weblogic.logging.LogOutputStream getDebugLog()
getDebugLog in interface weblogic.security.acl.DebuggableRealmpublic java.security.acl.Group getGroup(java.lang.String name)
getGroup in interface weblogic.security.acl.BasicRealmname - The name of the group being requested.
public java.util.Enumeration getGroups()
getGroups in interface weblogic.security.acl.ListableRealmpublic weblogic.security.acl.User getUser(java.lang.String name)
getUser in interface weblogic.security.acl.BasicRealmname - The name of the user being requested.
public java.util.Enumeration getUsers()
getUsers in interface weblogic.security.acl.ListableRealm
public void deleteGroup(java.security.acl.Group group)
throws java.lang.SecurityException
deleteGroup in interface weblogic.security.acl.ManageableRealmgroup - The group to be removed
java.lang.SecurityException - Thrown if the security store is set to be
immutable.
public void deleteUser(weblogic.security.acl.User user)
throws java.lang.SecurityException
deleteUser in interface weblogic.security.acl.ManageableRealmuser - The user to be removed
java.lang.SecurityException - Thrown if the security store is set to be
immutable.
public void init(java.lang.String name,
java.lang.Object owner)
throws java.security.acl.NotOwnerException
init in interface weblogic.security.acl.BasicRealmname - Name of Realmowner - Credentialed owner of this realm
java.security.acl.NotOwnerException - if the owner credential is invalid
public java.security.acl.Group newGroup(java.lang.String name)
throws java.lang.SecurityException
newGroup in interface weblogic.security.acl.ManageableRealmname - The name to be given to the new group.
java.lang.SecurityException - Thrown if either the security store is set to
be immutable, or if a group already existed with the same name.
public weblogic.security.acl.User newUser(java.lang.String name,
java.lang.Object credential,
java.lang.Object constraints)
throws java.lang.SecurityException
newUser in interface weblogic.security.acl.ManageableRealmname - The name to be given to the user.credential - The authentication credential (again, currently must be
a String password for OSUser).constraints - Any constraints to be placed on this user's
access. Currently OSUser has no concept of this, so this is simply ignored.
java.lang.SecurityException - Thrown if either the security store is set to
be immutable, or if a user already existed with the same username.protected java.util.Hashtable getGroupMembersInternal(java.lang.String name)
name - The name of the group for which to return members.
protected weblogic.security.acl.User authUserPassword(java.lang.String username,
java.lang.String password)
username - The principal name of the user to authenticate.password - The password supplied by the person attempting to login
as the user denoted by user.
|
See www.opensymphony.com for more information. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||