|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
BasicRealm provides a minimal interface for realms. Different implementations of the security-related interfaces User, Group, Permission, and Acl are organized into Realms. BasicRealm is extended by ListableRealm and ManageableRealm, which add the ability to list all instances managed by the realm and the ability to create and destroy instances.
User
,
GroupImpl
,
PermissionImpl
,
AclImpl
Method Summary | |
java.security.acl.Acl |
getAcl(java.lang.String name)
Retrieves an Access Control List (Acl) of that name, or null. |
java.security.acl.Acl |
getAcl(java.lang.String name,
char separator)
Retrieves an Access Control List (Acl) with the best matching name, or null. |
java.security.Principal |
getAclOwner(java.lang.Object credential)
Retrieves the owner of all ACLs in a BasicRealm, or null, depending on the validity of the passed credential. |
java.security.acl.Group |
getGroup(java.lang.String name)
Retrieves a group of that name or null. |
java.lang.String |
getName()
Gets the name of a BasicRealm. |
java.security.acl.Permission |
getPermission(java.lang.String name)
Retrieves a permission of that name, or null. |
User |
getUser(java.lang.String name)
Retrieves a User by the specified name, or null. |
User |
getUser(UserInfo userInfo)
Checks whether some User matches the presented UserInfo and accepts its credentials. |
void |
init(java.lang.String name,
java.lang.Object ownerCredential)
Initializes a realm implementation. |
void |
load(java.lang.String name,
java.lang.Object credential)
Loads a BasicRealm from some persistent state identified in the name. |
void |
save(java.lang.String name)
Saves the realm to some persistent state identified in the name. |
Method Detail |
public void init(java.lang.String name, java.lang.Object ownerCredential) throws java.security.acl.NotOwnerException
name
- Name of RealmownerCredential
- Credentialed owner of a BasicRealmpublic java.lang.String getName()
public User getUser(java.lang.String name)
User
- namepublic User getUser(UserInfo userInfo)
userInfo
- Credentials to check againstpublic java.security.Principal getAclOwner(java.lang.Object credential)
credential
- Credentials of an ownerpublic java.security.acl.Group getGroup(java.lang.String name)
name
- Name of grouppublic java.security.acl.Acl getAcl(java.lang.String name)
name
- Name of ACL associated with a BasicRealmpublic java.security.acl.Acl getAcl(java.lang.String name, char separator)
name
- Name of the Acl to retrieveseparator
- Character separatorpublic java.security.acl.Permission getPermission(java.lang.String name)
name
- Name of permission to retrievepublic void load(java.lang.String name, java.lang.Object credential) throws java.lang.ClassNotFoundException, java.io.IOException, java.security.acl.NotOwnerException
name
- Name of BasicRealm to loadcredential
- Credentialed owner of a BasicRealmpublic void save(java.lang.String name) throws java.io.IOException
name
- Name to save under
|
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 |