Package net.ontopia.topicmaps.nav2.realm
Class TMLoginModule
java.lang.Object
net.ontopia.topicmaps.nav2.realm.TMLoginModule
- All Implemented Interfaces:
LoginModule
INTERNAL: TMLoginModule provides authentication to web applications by
checking user credentials against information stored in a topicmap.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanabort()booleancommit()Add relevant Principals to the subject.protected TopicMapIFstatic StringhashPassword(String username, String password, String hashMethod) voidinitialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) booleanlogin()Prompt the user for username and password, and verify those.booleanlogout()
-
Field Details
-
topicmapId
-
-
Constructor Details
-
TMLoginModule
public TMLoginModule()
-
-
Method Details
-
abort
- Specified by:
abortin interfaceLoginModule- Throws:
LoginException
-
commit
Add relevant Principals to the subject.- Specified by:
commitin interfaceLoginModule- Throws:
LoginException
-
initialize
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) - Specified by:
initializein interfaceLoginModule
-
login
Prompt the user for username and password, and verify those.- Specified by:
loginin interfaceLoginModule- Throws:
LoginException
-
logout
- Specified by:
logoutin interfaceLoginModule- Throws:
LoginException
-
getTopicMap
-
hashPassword
-