|
J2EE1.4 SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.enterprise.security.auth.realm.Realm
com.sun.appserv.security.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 java.util.logging.Logger |
_logger
|
static java.lang.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. |
java.util.Enumeration |
getGroupNames()
Returns names of all the groups in this particular realm. |
com.sun.enterprise.security.auth.realm.User |
getUser(java.lang.String name)
Returns the information recorded about a particular named user. |
java.util.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 java.lang.String JAAS_CONTEXT_PARAM
protected static java.util.logging.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.
public java.util.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.
com.sun.enterprise.security.auth.realm.BadRealmException
- if realm data structures are badpublic com.sun.enterprise.security.auth.realm.User getUser(java.lang.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.
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 java.util.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.
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.
com.sun.enterprise.security.auth.realm.BadRealmException
- if realm data structures are bad
|
J2EE1.4 SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2003 Sun Microsystems, Inc. All rights reserved.