All Packages Class Hierarchy This Package Previous Next Index
Class sun.server.realm.UNIXRealm
java.lang.Object
|
+----sun.server.realm.Realm
|
+----sun.server.realm.UNIXRealm
- public final class UNIXRealm
- extends Realm
This class provides a simple implementation of a realm based on
native UNIX (POSIX) notions of users and groups. When run on
systems which don't support those notions, the UNIX realm will
not be available. Also, note that many platform-specific features
(such as shadow passwords and account creation/modification) are
not currently accessible through this class.
-
deleteGroup(String)
-
-
deleteUser(String)
- Not portably implementable.
-
getAuthSchemes()
- Returns the only authentication scheme supported by
this realm, one based on shared passwords known to
both the server and client.
-
getDefaultAclOwner()
- Returns the principal which will by default own all ACLs
in this realm.
-
getGroup(String)
-
-
getGroupNames()
- Returns names of all the groups in this particular realm.
-
getUser(String)
- Returns the information recorded about a particular named
user.
-
getUserNames()
- Returns names of all the users in this particular realm.
-
isAuthSupported(String)
- Returns true iff the requested scheme is authSharedPassword.
-
makeGroup(String)
- Returns a newly created empty group, with the name which is
given as a parameter.
getAuthSchemes
public String[] getAuthSchemes()
- Returns the only authentication scheme supported by
this realm, one based on shared passwords known to
both the server and client.
- Returns:
- single element vector with one scheme
- Overrides:
- getAuthSchemes in class Realm
isAuthSupported
public boolean isAuthSupported(String scheme)
- Returns true iff the requested scheme is authSharedPassword.
- Parameters:
- scheme - name of an authentication scheme
- Returns:
- true iff it is supported
- Overrides:
- isAuthSupported in class Realm
getUserNames
public Enumeration getUserNames()
- Returns names of all the users in this particular realm.
- Returns:
- enumeration of user names
- Overrides:
- getUserNames in class Realm
getUser
public User getUser(String name) throws NoSuchUserException
- Returns the information recorded about a particular named
user.
- Parameters:
- name - name of the user whose information is desired
- Returns:
- object describing that user
- Throws: NoSuchUserException
- if the user is not recognized
- Overrides:
- getUser in class Realm
deleteUser
public void deleteUser(String user) throws InUseException
- Not portably implementable. Deletes a user account from the
native operating system.
- Parameters:
- user - the name of the account to be deleted
- Throws: InUseException
- always
- Overrides:
- deleteUser in class Realm
getDefaultAclOwner
public Principal getDefaultAclOwner() throws BadRealmException
- Returns the principal which will by default own all ACLs
in this realm.
- Returns:
- the "root" principal
- Throws: BadRealmException
- if there is no such principal
- Overrides:
- getDefaultAclOwner in class Realm
getGroupNames
public Enumeration getGroupNames()
- Returns names of all the groups in this particular realm.
- Overrides:
- getGroupNames in class Realm
getGroup
public Group getGroup(String groupName) throws NoSuchGroupException
- Throws: NoSuchGroupException
- always
- Overrides:
- getGroup in class Realm
makeGroup
public Group makeGroup(String groupName)
- Returns a newly created empty group, with the name which is
given as a parameter.
- Overrides:
- makeGroup in class Realm
deleteGroup
public boolean deleteGroup(String groupName) throws NoSuchGroupException
- Throws: NoSuchGroupException
- always
- Overrides:
- deleteGroup in class Realm
All Packages Class Hierarchy This Package Previous Next Index