public abstract class BSTokenLoginModule
extends java.lang.Object
implements javax.security.auth.spi.LoginModule
X509Certificate data.LoginModule| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
_binary |
protected java.security.cert.X509Certificate |
_cert |
protected javax.security.auth.callback.CallbackHandler |
_handler |
protected com.ibm.wsspi.webservices.rpc.handler.soap.SOAPMessageContext |
_messageContext |
protected java.util.Map |
_options |
protected java.util.Map |
_properties |
protected java.util.Map |
_sharedState |
protected javax.security.auth.Subject |
_subject |
| Constructor and Description |
|---|
BSTokenLoginModule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
abort()
Aborts the login process by removing the certificate data from the Subect.
|
boolean |
commit()
Commits the login process by adding the certificate data into the Subject.
|
void |
initialize(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler handler,
java.util.Map sharedState,
java.util.Map options)
Intializes this LoginModule.
|
boolean |
login()
Logs in to the login process.
|
boolean |
logout()
Logs out the login process.
|
protected javax.security.auth.Subject _subject
protected javax.security.auth.callback.CallbackHandler _handler
protected java.util.Map _sharedState
protected java.util.Map _options
protected byte[] _binary
protected java.util.Map _properties
protected com.ibm.wsspi.webservices.rpc.handler.soap.SOAPMessageContext _messageContext
protected java.security.cert.X509Certificate _cert
public void initialize(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler handler,
java.util.Map sharedState,
java.util.Map options)
initialize in interface javax.security.auth.spi.LoginModulesubject - The Subject to be authenticated.handler - The CallbackHandler used to gather login data from the user.sharedState - State data shared between login modules.options - A Map of key-value pairs specifying configuration options for this login module.LoginModule.initialize(Subject, CallbackHandler, Map, Map)public boolean login()
throws javax.security.auth.login.LoginException
login in interface javax.security.auth.spi.LoginModulejavax.security.auth.login.LoginException - if the login failsLoginModule.login()public boolean commit()
throws javax.security.auth.login.LoginException
commit in interface javax.security.auth.spi.LoginModulejavax.security.auth.login.LoginException - if the commit failsLoginModule.commit()public boolean abort()
throws javax.security.auth.login.LoginException
abort in interface javax.security.auth.spi.LoginModulejavax.security.auth.login.LoginException - if the abort failsLoginModule.abort()public boolean logout()
throws javax.security.auth.login.LoginException
logout in interface javax.security.auth.spi.LoginModulejavax.security.auth.login.LoginException - if the abort failsLoginModule.logout()