Package com.sun.grid.security.login
Class GECATrustManagerLoginModule
java.lang.Object
com.sun.grid.security.login.GECATrustManagerLoginModule
- All Implemented Interfaces:
LoginModule
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
abort()
Abort the login.boolean
commit()
If the login method had success the commit method adds theX500Principal
of the subject of the x509 certicate chain to the current subject.void
initialize
(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options) Initialize this LoginModule.boolean
login()
Try to loginboolean
logout()
logout the current subject
-
Constructor Details
-
GECATrustManagerLoginModule
public GECATrustManagerLoginModule()
-
-
Method Details
-
initialize
public void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options) Initialize this LoginModule.- Specified by:
initialize
in interfaceLoginModule
- Parameters:
subject
- the current subjectcallbackHandler
- callbackHandler for retrieving system name and X509 certificate chainsharedState
- shared state (not used)options
- options (not used)
-
login
Try to login- Specified by:
login
in interfaceLoginModule
- Returns:
true
if the login was successful- Throws:
LoginException
- if theCallbackHandler
does not support the requiredCallback
s or if anCallback
throws anIOException
.
-
commit
public boolean commit()If the login method had success the commit method adds theX500Principal
of the subject of the x509 certicate chain to the current subject.- Specified by:
commit
in interfaceLoginModule
- Returns:
true
ifX500Principal
has been added to the subject
-
abort
public boolean abort()Abort the login.- Specified by:
abort
in interfaceLoginModule
- Returns:
- always
true
-
logout
public boolean logout()logout the current subject- Specified by:
logout
in interfaceLoginModule
- Returns:
- always
true
-