|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ManageableRealm is the full-featured interface for realms. It adds to a ListableRealm's functionality the ability to create and destroy instances of users, groups, permissions, and ACLs.
Method Summary | |
void |
deleteAcl(java.security.Principal owner,
java.security.acl.Acl acl)
Deletes an Acl from a ManageableRealm. |
void |
deleteGroup(java.security.acl.Group group)
Deletes a Group from a ManageableRealm. |
void |
deletePermission(java.security.acl.Permission perm)
Deletes a Permission from a ManageableRealm. |
void |
deleteUser(User user)
Deletes a User from a ManageableRealm. |
java.security.acl.Acl |
newAcl(java.security.Principal owner,
java.lang.String name)
Creates a new Acl with the specified owner and name. |
java.security.acl.Group |
newGroup(java.lang.String name)
Returns a new group for a ManageableRealm. |
java.security.acl.Permission |
newPermission(java.lang.String name)
Creates a new Permission with the specified name for a ManageableRealm. |
User |
newUser(java.lang.String name,
java.lang.Object credential,
java.lang.Object constraints)
Returns a new user in a realm-specific way with the specified name, credentials, and optional constraints. |
void |
setPermission(java.security.acl.Acl acl,
java.security.Principal principal,
java.security.acl.Permission permission,
boolean allow)
Sets or unsets a permission for a principal in an ACL. |
Methods inherited from interface weblogic.security.acl.ListableRealm |
getAcls,
getGroups,
getPermissions,
getUsers |
Methods inherited from interface weblogic.security.acl.BasicRealm |
getAcl,
getAcl,
getAclOwner,
getGroup,
getName,
getPermission,
getUser,
getUser,
init,
load,
save |
Method Detail |
public User newUser(java.lang.String name, java.lang.Object credential, java.lang.Object constraints) throws java.lang.SecurityException
If a user of that name already exists, a SecurityException is thrown.
name
- Usernamecredential
- X.509 certificate, token, or password, etc.constraints
- Constraints on this user's accesspublic java.security.acl.Group newGroup(java.lang.String name) throws java.lang.SecurityException
name
- Name for the new Grouppublic java.security.acl.Acl newAcl(java.security.Principal owner, java.lang.String name) throws java.lang.SecurityException
owner
- Owner of the access control listname
- Name of the access control listpublic java.security.acl.Permission newPermission(java.lang.String name) throws java.lang.SecurityException
name
- Name for the Permissionpublic void deleteUser(User user) throws java.lang.SecurityException
user
- User to be removed from the realmpublic void deleteGroup(java.security.acl.Group group) throws java.lang.SecurityException
group
- Group to be removed from the realmpublic void deleteAcl(java.security.Principal owner, java.security.acl.Acl acl) throws java.lang.SecurityException
owner
- Principal who is an owner of the ACLacl
- Access control list to be deletedpublic void deletePermission(java.security.acl.Permission perm) throws java.lang.SecurityException
group
- Permission to be removed from the realmpublic void setPermission(java.security.acl.Acl acl, java.security.Principal principal, java.security.acl.Permission permission, boolean allow)
acl
- Access control list to be updatedprincipal
- Principal who is an owner of the ACLpermission
- Permission to be updatedallow
- True to set permission to allow
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs60 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |