com.sun.grid.security.login
public class GECATrustManagerLoginModule extends java.lang.Object implements javax.security.auth.spi.LoginModule
Constructor and Description |
---|
GECATrustManagerLoginModule() |
Modifier and Type | Method and Description |
---|---|
boolean |
abort()
Abort the login.
|
boolean |
commit()
If the login method had success the commit method adds the
X500Principal
of the subject of the x509 certicate chain to the current subject. |
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()
Try to login
|
boolean |
logout()
logout the current subject
|
public void initialize(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler callbackHandler, java.util.Map sharedState, java.util.Map options)
initialize
in interface javax.security.auth.spi.LoginModule
subject
- the current subjectcallbackHandler
- callbackHandler for retrieving system name and X509 certificate chainsharedState
- shared state (not used)options
- options (not used)public boolean login() throws javax.security.auth.login.LoginException
login
in interface javax.security.auth.spi.LoginModule
true
if the login was successfuljavax.security.auth.login.LoginException
- if the CallbackHandler
does not
support the required Callback
s or if an Callback
throws
an IOException
.public boolean commit()
X500Principal
of the subject of the x509 certicate chain to the current subject.commit
in interface javax.security.auth.spi.LoginModule
true
if X500Principal
has been added to the subjectpublic boolean abort()
abort
in interface javax.security.auth.spi.LoginModule
true
public boolean logout()
logout
in interface javax.security.auth.spi.LoginModule
true