|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.enterprise.security.auth.realm.Realm com.sun.appserv.security.AppservRealm
public abstract class AppservRealm
Parent class for iAS Realm classes.
This class provides default implementation for most of the abstract methods in com.sun.enterprise.security.auth.realm.Realm. Since most of these abstract methods are not supported by Realms there is no need for the subclasses to implement them. The default implementations provided here generally throw an exception if invoked.
Field Summary | |
---|---|
protected static Logger |
_logger
|
static String |
JAAS_CONTEXT_PARAM
|
protected static com.sun.enterprise.util.i18n.StringManager |
sm
|
Constructor Summary | |
---|---|
AppservRealm()
|
Method Summary | |
---|---|
com.sun.enterprise.security.auth.realm.AuthenticationHandler |
getAuthenticationHandler()
Returns an AuthenticationHandler object which can be used to authenticate within this realm. |
Enumeration |
getGroupNames()
Returns names of all the groups in this particular realm. |
com.sun.enterprise.security.auth.realm.User |
getUser(String name)
Returns the information recorded about a particular named user. |
Enumeration |
getUserNames()
Returns names of all the users in this particular realm. |
void |
refresh()
Refreshes the realm data so that new users/groups are visible. |
Methods inherited from class com.sun.enterprise.security.auth.realm.Realm |
---|
compareTo, getAuthType, getDefaultInstance, getDefaultRealm, getGroupNames, getInstance, getJAASContext, getName, getProperties, getProperty, getRealmNames, init, instantiate, instantiate, isValidRealm, setDefaultRealm, setName, setProperty, toString, updateInstance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String JAAS_CONTEXT_PARAM
protected static Logger _logger
protected static com.sun.enterprise.util.i18n.StringManager sm
Constructor Detail |
---|
public AppservRealm()
Method Detail |
---|
public com.sun.enterprise.security.auth.realm.AuthenticationHandler getAuthenticationHandler()
This method return null always, since AuthenticationHandlers are generally not supported by iAS realms. Subclass can override if necessary.
getAuthenticationHandler
in class com.sun.enterprise.security.auth.realm.Realm
public Enumeration getUserNames() throws com.sun.enterprise.security.auth.realm.BadRealmException
This method always throws a BadRealmException since by default this operation is not supported. Subclasses which support this method can override.
getUserNames
in class com.sun.enterprise.security.auth.realm.Realm
com.sun.enterprise.security.auth.realm.BadRealmException
- if realm data structures are badpublic com.sun.enterprise.security.auth.realm.User getUser(String name) throws com.sun.enterprise.security.auth.realm.NoSuchUserException, com.sun.enterprise.security.auth.realm.BadRealmException
This method always throws a BadRealmException since by default this operation is not supported. Subclasses which support this method can override.
getUser
in class com.sun.enterprise.security.auth.realm.Realm
name
- name of the user whose information is desired
com.sun.enterprise.security.auth.realm.NoSuchUserException
- if the user doesn't exist
com.sun.enterprise.security.auth.realm.BadRealmException
- if realm data structures are badpublic Enumeration getGroupNames() throws com.sun.enterprise.security.auth.realm.BadRealmException
This method always throws a BadRealmException since by default this operation is not supported. Subclasses which support this method can override.
getGroupNames
in class com.sun.enterprise.security.auth.realm.Realm
com.sun.enterprise.security.auth.realm.BadRealmException
- if realm data structures are badpublic void refresh() throws com.sun.enterprise.security.auth.realm.BadRealmException
This method always throws a BadRealmException since by default this operation is not supported. Subclasses which support this method can override.
refresh
in class com.sun.enterprise.security.auth.realm.Realm
com.sun.enterprise.security.auth.realm.BadRealmException
- if realm data structures are bad
|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2006 Sun Microsystems, Inc. All rights reserved.