com.ibm.wsspi.wssecurity.auth.module

Class BSTokenLoginModule

  1. java.lang.Object
  2. extended bycom.ibm.wsspi.wssecurity.auth.module.BSTokenLoginModule
All implemented interfaces:
javax.security.auth.spi.LoginModule
Direct known subclasses:
PKCS7LoginModule, PkiPathLoginModule, X509LoginModule

  1. public abstract class BSTokenLoginModule
  2. extends java.lang.Object
  3. implements javax.security.auth.spi.LoginModule
Base class for processing and validating the X509Certificate data.
See Also:
LoginModule

Field Summary

Modifier and Type Field and Description
  1. protected
  2. byte[]
_binary
  1. protected
  2. java.security.cert.X509Certificate
_cert
  1. protected
  2. javax.security.auth.callback.CallbackHandler
_handler
  1. protected
  2. com.ibm.wsspi.webservices.rpc.handler.soap.SOAPMessageContext
_messageContext
  1. protected
  2. java.util.Map
_options
  1. protected
  2. java.util.Map
_properties
  1. protected
  2. java.util.Map
_sharedState
  1. protected
  2. javax.security.auth.Subject
_subject

Constructor Summary

Constructor and Description
BSTokenLoginModule()

Method Summary

Modifier and Type Method and Description
  1. boolean
abort()
Aborts the login process by removing the certificate data from the Subect.
  1. boolean
commit()
Commits the login process by adding the certificate data into the Subject.
  1. void
initialize(javax.security.auth.Subject subject,javax.security.auth.callback.CallbackHandler handler,java.util.Map sharedState,java.util.Map options)
Intializes this LoginModule.
  1. boolean
login()
Logs in to the login process.
  1. boolean
logout()
Logs out the login process.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

_subject

  1. protected javax.security.auth.Subject _subject

_handler

  1. protected javax.security.auth.callback.CallbackHandler _handler

_sharedState

  1. protected java.util.Map _sharedState

_options

  1. protected java.util.Map _options

_binary

  1. protected byte[] _binary

_properties

  1. protected java.util.Map _properties

_messageContext

  1. protected com.ibm.wsspi.webservices.rpc.handler.soap.SOAPMessageContext _messageContext

_cert

  1. protected java.security.cert.X509Certificate _cert

Constructor Detail

BSTokenLoginModule

  1. public BSTokenLoginModule()

Method Detail

initialize

  1. public void initialize(javax.security.auth.Subject subject,
  2. javax.security.auth.callback.CallbackHandler handler,
  3. java.util.Map sharedState,
  4. java.util.Map options)
Intializes this LoginModule.
Specified by:
initialize in interface javax.security.auth.spi.LoginModule
Parameters:
subject - 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.
See Also:
LoginModule.initialize(Subject, CallbackHandler, Map, Map)

login

  1. public boolean login()
  2. throws javax.security.auth.login.LoginException
Logs in to the login process.
Specified by:
login in interface javax.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

  1. public boolean commit()
  2. throws javax.security.auth.login.LoginException
Commits the login process by adding the certificate data into the Subject.
Specified by:
commit in interface javax.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

  1. public boolean abort()
  2. throws javax.security.auth.login.LoginException
Aborts the login process by removing the certificate data from the Subect.
Specified by:
abort in interface javax.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

  1. public boolean logout()
  2. throws javax.security.auth.login.LoginException
Logs out the login process.
Specified by:
logout in interface javax.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()