|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectno.feide.mellon.jaas.loginmodules.MoriaLoginModule
public class MoriaLoginModule
Field Summary | |
---|---|
private static java.lang.String[] |
ATTRIBUTE_NAMES
|
private javax.security.auth.callback.CallbackHandler |
callbackHandler
|
private boolean |
commitSucceeded
|
private boolean |
debug
|
private java.lang.String |
endpoint
|
private boolean |
loginSucceeded
|
private java.util.Map |
options
|
private java.lang.String |
service_password
|
private java.lang.String |
service_username
|
private java.util.Map |
sharedState
|
private javax.security.auth.Subject |
subject
|
private java.util.ArrayList |
tmpPrincipals
|
private java.util.ArrayList |
tmpPublicCredentials
|
private java.lang.String |
username
|
Constructor Summary | |
---|---|
MoriaLoginModule()
|
Method Summary | |
---|---|
boolean |
abort()
This method is called if the LoginContext's overall authentication failed. |
boolean |
commit()
This method is called if the LoginContext's overall authentication succeeded. |
void |
initialize(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler callbackHandler,
java.util.Map sharedState,
java.util.Map options)
Initialize this LoginModule
|
boolean |
login()
The login method is called to authenticate the user. |
boolean |
logout()
This method removes the principals that was added by the commit method. |
private boolean |
validate(java.lang.String username,
char[] password)
This method checks the username and password and gets the users attribute values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private javax.security.auth.Subject subject
private javax.security.auth.callback.CallbackHandler callbackHandler
private java.util.Map sharedState
private java.util.Map options
private boolean loginSucceeded
private boolean commitSucceeded
private java.lang.String username
private java.util.ArrayList tmpPrincipals
private java.util.ArrayList tmpPublicCredentials
private boolean debug
private static final java.lang.String[] ATTRIBUTE_NAMES
private java.lang.String endpoint
private java.lang.String service_username
private java.lang.String service_password
Constructor Detail |
---|
public MoriaLoginModule()
Method Detail |
---|
public void initialize(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler callbackHandler, java.util.Map sharedState, java.util.Map options)
LoginModule
initialize
in interface javax.security.auth.spi.LoginModule
subject
- the Subject
to be authenticated.callbackHandler
- a CallbackHandler
for communicating with the user,
(promting for username and password)sharedState
- state shared with the other LoginModule
options
- options specified in the login Configuration
for this
particular LoginModule
public boolean login() throws javax.security.auth.login.LoginException
login
in interface javax.security.auth.spi.LoginModule
javax.security.auth.login.FailedLoginException
- if authentication failes.
javax.security.auth.login.LoginException
- if this LoginModule
is unable to perform the uthentication.public boolean commit() throws javax.security.auth.login.LoginException
commit
in interface javax.security.auth.spi.LoginModule
javax.security.auth.login.LoginException
- if the commit attempt failes.public boolean abort() throws javax.security.auth.login.LoginException
abort
in interface javax.security.auth.spi.LoginModule
javax.security.auth.login.LoginException
- if the abort failespublic boolean logout() throws javax.security.auth.login.LoginException
commit
method.
logout
in interface javax.security.auth.spi.LoginModule
javax.security.auth.login.LoginException
- if the logout fails.private boolean validate(java.lang.String username, char[] password)
username
- password
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |