com.compoze.examples
Class TestUserAuthenticationFactory
java.lang.Object
|
+--com.compoze.examples.TestUserAuthenticationFactory
- All Implemented Interfaces:
- IUserAuthenticationFactory, java.io.Serializable
- public class TestUserAuthenticationFactory
- extends java.lang.Object
- implements IUserAuthenticationFactory, java.io.Serializable
This class uses examples.properties
to provide a 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
.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestUserAuthenticationFactory
public TestUserAuthenticationFactory()
getUserAuthentication
public User getUserAuthentication(UserInfo userInfo)
throws InvalidAuthenticationException
- Description copied from interface:
IUserAuthenticationFactory
- Gets the user authentication from the given user info.
- Specified by:
getUserAuthentication
in interface IUserAuthenticationFactory
- Following copied from interface:
com.compoze.security.IUserAuthenticationFactory
- Parameters:
userInfo
- the user information- Returns:
- the user authentication collected from the user info or
null
if user can not be determined - Throws:
InvalidAuthenticationException
- occurs if the user authentication cannot be validated (ie. the user exists but cannot be authenticated with the specified user information credentials)
getAnonymousAuthentication
public User getAnonymousAuthentication()
- Description copied from interface:
IUserAuthenticationFactory
- Gets the anonymous authentication.
- Specified by:
getAnonymousAuthentication
in interface IUserAuthenticationFactory
- Following copied from interface:
com.compoze.security.IUserAuthenticationFactory
- Returns:
- the anonymous authentication or
null
if none can be determined
users
public java.util.List users()
throws java.lang.UnsupportedOperationException
- Description copied from interface:
IUserAuthenticationFactory
- Gets the list of users (optional operation).
- Specified by:
users
in interface IUserAuthenticationFactory
- Following copied from interface:
com.compoze.security.IUserAuthenticationFactory
- Returns:
- the list of
User
objects - Throws:
java.lang.UnsupportedOperationException
- obtaining a list of users is not supported by this authentication factory
groups
public java.util.List groups()
throws java.lang.UnsupportedOperationException
- Description copied from interface:
IUserAuthenticationFactory
- Gets the list of groups (optional operation).
- Specified by:
groups
in interface IUserAuthenticationFactory
- Following copied from interface:
com.compoze.security.IUserAuthenticationFactory
- Returns:
- the list of
Group
objects - Throws:
java.lang.UnsupportedOperationException
- obtaining a list of groups is not supported by this authentication factory
main
public static void main(java.lang.String[] args)
- Exerciser.
- Parameters:
args
- arguments
Copyright ©1999-2001 Compoze Software, Inc. All rights reserved.