|
Compoze Software, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.compoze.examples.JdbcUserAuthenticationFactory
This class uses a database to store basic
set of users and groups for the example applications.
This class is provided for illustrative purposes
only and the source is included in the product delivery
at %HARMONY_HOME%\examples\source.
| Constructor Summary | |
JdbcUserAuthenticationFactory()
Constructor. |
|
| Method Summary | |
static User |
createUser(java.lang.String sName,
java.lang.String sPassword,
java.lang.String sEmailAddress,
java.lang.String groups)
Creates a new user with the default locale and time zone. |
static User |
createUser(java.lang.String sName,
java.lang.String sPassword,
java.lang.String sEmailAddress,
java.lang.String groups,
java.util.Locale locale,
java.util.TimeZone timeZone)
Gets a user by name. |
User |
getAnonymousAuthentication()
Gets the anonymous authentication. |
User |
getUserAuthentication(UserInfo userInfo)
Gets the user authentication from the given user info. |
java.util.List |
groups()
Gets the list of groups (optional operation). |
java.util.List |
users()
Gets the list of users (optional operation). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JdbcUserAuthenticationFactory()
| Method Detail |
public User getUserAuthentication(UserInfo userInfo)
throws InvalidAuthenticationException
IUserAuthenticationFactorygetUserAuthentication in interface IUserAuthenticationFactorycom.compoze.security.IUserAuthenticationFactoryuserInfo - the user informationnull if user can not be determinedInvalidAuthenticationException - occurs if the user authentication cannot be validated (ie. the user exists but cannot be authenticated with the specified user information credentials)public User getAnonymousAuthentication()
IUserAuthenticationFactorygetAnonymousAuthentication in interface IUserAuthenticationFactorycom.compoze.security.IUserAuthenticationFactorynull if none can be determined
public java.util.List users()
throws java.lang.UnsupportedOperationException
IUserAuthenticationFactoryusers in interface IUserAuthenticationFactorycom.compoze.security.IUserAuthenticationFactoryUser objectsjava.lang.UnsupportedOperationException - obtaining a list of users is not supported by this authentication factory
public java.util.List groups()
throws java.lang.UnsupportedOperationException
IUserAuthenticationFactorygroups in interface IUserAuthenticationFactorycom.compoze.security.IUserAuthenticationFactoryGroup objectsjava.lang.UnsupportedOperationException - obtaining a list of groups is not supported by this authentication factory
public static User createUser(java.lang.String sName,
java.lang.String sPassword,
java.lang.String sEmailAddress,
java.lang.String groups)
sName - the user name (may not be null)sPassword - the password for the usersEmailAddress - the email address for the usergroups - a comma separated list of groups the user is member of
public static User createUser(java.lang.String sName,
java.lang.String sPassword,
java.lang.String sEmailAddress,
java.lang.String groups,
java.util.Locale locale,
java.util.TimeZone timeZone)
sName - the user name (may not be null)sPassword - the password for the usersEmailAddress - the email address for the usergroups - a comma separated list of groups the user is member oflocale - the locale for the usertimeZone - the time zone for the user
|
Compoze Software, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||