Package com.sun.grid.security.login
Class GECATrustManagerLoginModule
- java.lang.Object
-
- com.sun.grid.security.login.GECATrustManagerLoginModule
-
- All Implemented Interfaces:
javax.security.auth.spi.LoginModule
public class GECATrustManagerLoginModule extends java.lang.Object implements javax.security.auth.spi.LoginModule
-
-
Constructor Summary
Constructors Constructor Description GECATrustManagerLoginModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanabort()Abort the login.booleancommit()If the login method had success the commit method adds theX500Principalof the subject of the x509 certicate chain to the current subject.voidinitialize(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler callbackHandler, java.util.Map sharedState, java.util.Map options)Initialize this LoginModule.booleanlogin()Try to loginbooleanlogout()logout the current subject
-
-
-
Method Detail
-
initialize
public void initialize(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler callbackHandler, java.util.Map sharedState, java.util.Map options)Initialize this LoginModule.- Specified by:
initializein interfacejavax.security.auth.spi.LoginModule- Parameters:
subject- the current subjectcallbackHandler- callbackHandler for retrieving system name and X509 certificate chainsharedState- shared state (not used)options- options (not used)
-
login
public boolean login() throws javax.security.auth.login.LoginExceptionTry to login- Specified by:
loginin interfacejavax.security.auth.spi.LoginModule- Returns:
trueif the login was successful- Throws:
javax.security.auth.login.LoginException- if theCallbackHandlerdoes not support the requiredCallbacks or if anCallbackthrows anIOException.
-
commit
public boolean commit()
If the login method had success the commit method adds theX500Principalof the subject of the x509 certicate chain to the current subject.- Specified by:
commitin interfacejavax.security.auth.spi.LoginModule- Returns:
trueifX500Principalhas been added to the subject
-
abort
public boolean abort()
Abort the login.- Specified by:
abortin interfacejavax.security.auth.spi.LoginModule- Returns:
- always
true
-
logout
public boolean logout()
logout the current subject- Specified by:
logoutin interfacejavax.security.auth.spi.LoginModule- Returns:
- always
true
-
-