com.opensymphony.user.adapter.weblogic
Class OSUserRealm

java.lang.Object
  extended byweblogic.security.acl.AbstractListableRealm
      extended byweblogic.security.acl.AbstractManageableRealm
          extended bycom.opensymphony.user.adapter.weblogic.OSUserRealm
All Implemented Interfaces:
weblogic.security.acl.BasicRealm, weblogic.security.acl.DebuggableRealm, weblogic.security.acl.DelegatedRealm, weblogic.security.acl.FlatGroup.Source, weblogic.security.acl.ListableRealm, weblogic.security.acl.ManageableRealm, java.io.Serializable

public class OSUserRealm
extends weblogic.security.acl.AbstractManageableRealm
implements weblogic.security.acl.DebuggableRealm

Maps a Weblogic security realm to the OSUser classes Created Mar 4, 2002 8:56:28 PM

Version:
1.0
Author:
Jason Carreira
See Also:
Serialized Form

Constructor Summary
OSUserRealm()
          The OSUser UserManager to delegate calls to
 
Method Summary
 void deleteGroup(java.security.acl.Group group)
           
 void deleteUser(weblogic.security.acl.User user)
           
 weblogic.logging.LogOutputStream getDebugLog()
          Obtains the debug log, if it is enabled.
 java.security.acl.Group getGroup(java.lang.String name)
           
 java.util.Enumeration getGroups()
           
 weblogic.security.acl.User getUser(java.lang.String name)
           
 weblogic.security.acl.User getUser(weblogic.security.acl.UserInfo userInfo)
           
 java.util.Enumeration getUsers()
           
 void init(java.lang.String s, java.lang.Object o)
           
 java.security.acl.Group newGroup(java.lang.String name)
           
 weblogic.security.acl.User newUser(java.lang.String name, java.lang.Object credential, java.lang.Object constraints)
           
 void setDebug(boolean enable)
          Enables or disables debug logging.
 
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, authUserPassword, getAcl, getAcl, getAclOwner, getAcls, getDelegator, getGroupMembers, getGroupMembersInternal, getName, getPermission, getPermissions, 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, load, save
 

Constructor Detail

OSUserRealm

public OSUserRealm()
The OSUser UserManager to delegate calls to

Method Detail

setDebug

public void setDebug(boolean enable)
Enables or disables debug logging.

Specified by:
setDebug in interface weblogic.security.acl.DebuggableRealm

getDebugLog

public weblogic.logging.LogOutputStream getDebugLog()
Obtains the debug log, if it is enabled.

Specified by:
getDebugLog in interface weblogic.security.acl.DebuggableRealm

getGroup

public java.security.acl.Group getGroup(java.lang.String name)
Specified by:
getGroup in interface weblogic.security.acl.BasicRealm

getGroups

public java.util.Enumeration getGroups()
Specified by:
getGroups in interface weblogic.security.acl.ListableRealm

getUser

public weblogic.security.acl.User getUser(java.lang.String name)
Specified by:
getUser in interface weblogic.security.acl.BasicRealm

getUser

public weblogic.security.acl.User getUser(weblogic.security.acl.UserInfo userInfo)
Specified by:
getUser in interface weblogic.security.acl.BasicRealm

getUsers

public java.util.Enumeration getUsers()
Specified by:
getUsers in interface weblogic.security.acl.ListableRealm

deleteGroup

public void deleteGroup(java.security.acl.Group group)
                 throws java.lang.SecurityException
Specified by:
deleteGroup in interface weblogic.security.acl.ManageableRealm
Throws:
java.lang.SecurityException

deleteUser

public void deleteUser(weblogic.security.acl.User user)
                throws java.lang.SecurityException
Specified by:
deleteUser in interface weblogic.security.acl.ManageableRealm
Throws:
java.lang.SecurityException

init

public void init(java.lang.String s,
                 java.lang.Object o)
          throws java.security.acl.NotOwnerException
Specified by:
init in interface weblogic.security.acl.BasicRealm
Throws:
java.security.acl.NotOwnerException

newGroup

public java.security.acl.Group newGroup(java.lang.String name)
                                 throws java.lang.SecurityException
Specified by:
newGroup in interface weblogic.security.acl.ManageableRealm
Throws:
java.lang.SecurityException

newUser

public weblogic.security.acl.User newUser(java.lang.String name,
                                          java.lang.Object credential,
                                          java.lang.Object constraints)
                                   throws java.lang.SecurityException
Specified by:
newUser in interface weblogic.security.acl.ManageableRealm
Throws:
java.lang.SecurityException

See www.opensymphony.com for more information.