com.ibm.wsspi.wssecurity.auth.module
Class BSTokenLoginModule
- java.lang.Object
-
- com.ibm.wsspi.wssecurity.auth.module.BSTokenLoginModule
-
- All Implemented Interfaces:
- javax.security.auth.spi.LoginModule
- Direct Known Subclasses:
- PKCS7LoginModule, PkiPathLoginModule, X509LoginModule
public abstract class BSTokenLoginModule extends java.lang.Object implements javax.security.auth.spi.LoginModuleBase class for processing and validating theX509Certificatedata.- See Also:
LoginModule
-
-
Field Summary
Fields Modifier and Type Field and Description protected byte[]_binaryprotected java.security.cert.X509Certificate_certprotected javax.security.auth.callback.CallbackHandler_handlerprotected com.ibm.wsspi.webservices.rpc.handler.soap.SOAPMessageContext_messageContextprotected java.util.Map_optionsprotected java.util.Map_propertiesprotected java.util.Map_sharedStateprotected javax.security.auth.Subject_subject
-
Constructor Summary
Constructors Constructor and Description BSTokenLoginModule()
-
Method Summary
Methods Modifier and Type Method and Description booleanabort()Aborts the login process by removing the certificate data from the Subect.booleancommit()Commits the login process by adding the certificate data into the Subject.voidinitialize(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler handler, java.util.Map sharedState, java.util.Map options)Intializes this LoginModule.booleanlogin()Logs in to the login process.booleanlogout()Logs out the login process.
-
-
-
Field Detail
-
_subject
protected javax.security.auth.Subject _subject
-
_handler
protected javax.security.auth.callback.CallbackHandler _handler
-
_sharedState
protected java.util.Map _sharedState
-
_options
protected java.util.Map _options
-
_binary
protected byte[] _binary
-
_properties
protected java.util.Map _properties
-
_messageContext
protected com.ibm.wsspi.webservices.rpc.handler.soap.SOAPMessageContext _messageContext
-
_cert
protected java.security.cert.X509Certificate _cert
-
-
Method Detail
-
initialize
public void initialize(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler handler, java.util.Map sharedState, java.util.Map options)Intializes this LoginModule.- Specified by:
initializein interfacejavax.security.auth.spi.LoginModule- Parameters:
subject- TheSubjectto be authenticated.handler- TheCallbackHandlerused to gather login data from the user.sharedState- State data shared between login modules.options- AMapof key-value pairs specifying configuration options for this login module.- See Also:
LoginModule.initialize(Subject, CallbackHandler, Map, Map)
-
login
public boolean login() throws javax.security.auth.login.LoginExceptionLogs in to the login process.- Specified by:
loginin interfacejavax.security.auth.spi.LoginModule- Returns:
- true if the login is successful, false otherwise
- Throws:
javax.security.auth.login.LoginException- if the login fails- See Also:
LoginModule.login()
-
commit
public boolean commit() throws javax.security.auth.login.LoginExceptionCommits the login process by adding the certificate data into the Subject.- Specified by:
commitin interfacejavax.security.auth.spi.LoginModule- Returns:
- true if the commit is successful, false otherwise
- Throws:
javax.security.auth.login.LoginException- if the commit fails- See Also:
LoginModule.commit()
-
abort
public boolean abort() throws javax.security.auth.login.LoginExceptionAborts the login process by removing the certificate data from the Subect.- Specified by:
abortin interfacejavax.security.auth.spi.LoginModule- Returns:
- true if the abort was successful, false otherwise
- Throws:
javax.security.auth.login.LoginException- if the abort fails- See Also:
LoginModule.abort()
-
logout
public boolean logout() throws javax.security.auth.login.LoginExceptionLogs out the login process.- Specified by:
logoutin interfacejavax.security.auth.spi.LoginModule- Returns:
- true if the logout is successful, false otherwise
- Throws:
javax.security.auth.login.LoginException- if the abort fails- See Also:
LoginModule.logout()
-
-