|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BasicRealm
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 | |
---|---|
Acl |
getAcl(String name)
Deprecated. Retrieves an Access Control List (Acl) of that name, or null. |
Acl |
getAcl(String name,
char separator)
Deprecated. Retrieves an Access Control List (Acl) with the best matching name, or null. |
Principal |
getAclOwner(Object credential)
Deprecated. Retrieves the owner of all ACLs in a BasicRealm, or null, depending on the validity of the passed credential. |
Group |
getGroup(String name)
Deprecated. Retrieves a group of that name or null. |
String |
getName()
Deprecated. Gets the name of a BasicRealm. |
Permission |
getPermission(String name)
Deprecated. Retrieves a permission object of that name or, if null is passed in, returns null. |
User |
getUser(String name)
Deprecated. Retrieves a User by the specified name, or null. |
User |
getUser(UserInfo userInfo)
Deprecated. Checks whether some User matches the presented UserInfo and accepts its credentials. |
void |
init(String name,
Object ownerCredential)
Deprecated. Initializes a realm implementation. |
void |
load(String name,
Object credential)
Deprecated. Loads a BasicRealm from some persistent state identified in the name. |
void |
save(String name)
Deprecated. Saves the realm to some persistent state identified in the name. |
Method Detail |
---|
void init(String name, Object ownerCredential) throws NotOwnerException
name
- Name of RealmownerCredential
- Credentialed owner of a BasicRealm
NotOwnerException
- if
the owner credential is invalidString getName()
User getUser(String name)
name
- User name
User getUser(UserInfo userInfo)
userInfo
- Credentials to check against
Principal getAclOwner(Object credential)
credential
- Credentials of an owner
Group getGroup(String name)
name
- Name of group
Acl getAcl(String name)
name
- Name of ACL associated with a BasicRealm
Acl getAcl(String name, char separator)
name
- Name of the Acl to retrieveseparator
- Character separator
Permission getPermission(String name)
name
- Name of permission to retrieve
void load(String name, Object credential) throws ClassNotFoundException, IOException, NotOwnerException
name
- Name of BasicRealm to loadcredential
- Credentialed owner of a BasicRealm
ClassNotFoundException
- if the BasicRealm cannot be found
IOException
- if there is an I/O error
NotOwnerException
- if the credential does not match an ownervoid save(String name) throws IOException
name
- Name to save under
IOException
- if there is an I/O error
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs92 Copyright 2006 BEA Systems Inc. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |