net.ontopia.topicmaps.nav2.realm
Class TMLoginModule
java.lang.Object
net.ontopia.topicmaps.nav2.realm.TMLoginModule
- All Implemented Interfaces:
- LoginModule
public class TMLoginModule
- extends Object
- implements LoginModule
INTERNAL: TMLoginModule provides authentication to web applications by
checking user credentials against information stored in a topicmap.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
topicmapId
protected String topicmapId
TMLoginModule
public TMLoginModule()
abort
public boolean abort()
throws LoginException
- Specified by:
abort
in interface LoginModule
- Throws:
LoginException
commit
public boolean commit()
throws LoginException
- Add relevant Principals to the subject.
- Specified by:
commit
in interface LoginModule
- Throws:
LoginException
initialize
public void initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options)
- Specified by:
initialize
in interface LoginModule
login
public boolean login()
throws LoginException
- Prompt the user for username and password, and verify those.
- Specified by:
login
in interface LoginModule
- Throws:
LoginException
logout
public boolean logout()
throws LoginException
- Specified by:
logout
in interface LoginModule
- Throws:
LoginException
getTopicMap
protected TopicMapIF getTopicMap()
hashPassword
public static String hashPassword(String username,
String password,
String hashMethod)
Copyright © 2000-2012 Ontopia.