|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uiuc.ncsa.myproxy.jaas.MyProxyLoginModule
MyProxyLoginModule
authenticates users against a
MyProxy server.
LoginContext
,
MyProxy
Field Summary | |
static String |
VERSION
Version string |
Constructor Summary | |
MyProxyLoginModule()
|
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(Subject subject,
CallbackHandler callbackHandler,
Map sharedState,
Map options)
Initialize this MyProxyLoginModule . |
boolean |
login()
Authenticate the user by prompting for a username and pass phrase, and optionally a credential name. |
boolean |
logout()
Logout the user. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String VERSION
Version string
Constructor Detail |
public MyProxyLoginModule()
Method Detail |
public void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options)
MyProxyLoginModule
. Load all options
from the options
Map
.
initialize
in interface LoginModule
subject
- the Subject
to be authenticatedcallbackHandler
- a CallbackHandler
for communicating
with the end user (prompting for usernames and passwords, for
example)sharedState
- state shared with other configured LoginModulesoptions
- options specified by the LoginContext
for this particular LoginModule
public boolean login() throws LoginException
MyProxy
server is opened, and authentication is
attempted.
A principal is generated from the returned credential's DN, and both
the principal and the credential are stored pending a commit()
or abort()
login
in interface LoginModule
FailedLoginException
- if the MyProxy
authentication failed
LoginException
- if this module is unable to perform the
authenticationpublic boolean commit() throws LoginException
This method is called if the LoginContext
's overall
authentication succeeded. (The relevant LoginModules succeeded.)
If this module's own authentication succeeded, the stored
If this module's own authentation failed, then any saved state
data is removed.
GlobusPrincipal
is added to the Subject
's
principal
Set
, and the stored GSSCredential
is
added to the Subject
's private credentials
Set
.
commit
in interface LoginModule
LoginModule
should be ingored
LoginException
- if the commit fails.
public boolean abort() throws LoginException
This method is called if the LoginContext
's overall
authentication failed.
This method cleans up any saved state date and other
abort
in interface LoginModule
LoginModule
should be ingored
LoginException
- if the abort fails.public boolean logout() throws LoginException
This method removes the GlobusPrincipal
and the
GSSCredential
that were added to the
Subject
by the commit
method.
logout
in interface LoginModule
LoginModule
should be ingored
LoginException
- if the logout fails.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |