com.ibm.wsspi.wssecurity.auth.module

Class WSSecurityMappingModule

  • java.lang.Object
    • com.ibm.wsspi.wssecurity.auth.module.WSSecurityMappingModule
  • All Implemented Interfaces:
    Constants, javax.security.auth.spi.LoginModule
    Direct Known Subclasses:
    IDAssertionLoginModule, SignatureLoginModule

    Deprecated.

    public class WSSecurityMappingModule
    extends java.lang.Object
    implements javax.security.auth.spi.LoginModule, Constants

    This Login Module will take a DN and check if it is present in the user registry in order to validate it.

    This is not a standalone Login Module, it must be configured after the pluggable JAAS Login Module. The pluggable token JAAS Login Module must save the validated DN in the shared state hash map passed in the initialize method and the key used is com.ibm.wsspi.wssecurity.Constants.WSSECURITY_DN.

    Version:
    5.02
    See Also:
    LoginModule, Constants, WSCredential
    • Field Detail

      • wscred

        protected com.ibm.websphere.security.cred.WSCredential wscred
        Deprecated. wscred is no longer used.
      • wsprin

        protected com.ibm.websphere.security.auth.WSPrincipal wsprin
        Deprecated. wsprin is no longer used.
    • Constructor Detail

      • WSSecurityMappingModule

        public WSSecurityMappingModule()
        Deprecated. 
    • 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)
        Deprecated. 
        Intializes this LoginModule.
        Specified by:
        initialize in interface javax.security.auth.spi.LoginModule
        Parameters:
        subject - The Subject to be authenticated.
        callbackHandler - 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

        public boolean login()
                      throws javax.security.auth.login.LoginException
        Deprecated. 
        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

        public boolean commit()
                       throws javax.security.auth.login.LoginException
        Deprecated. 
        Commits the login process by adding the WSPrincipal and WSCredential 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

        public boolean abort()
                      throws javax.security.auth.login.LoginException
        Deprecated. 
        Aborts the login process by removing the WSPrincipal and WSCredential 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

        public boolean logout()
                       throws javax.security.auth.login.LoginException
        Deprecated. 
        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()
IBM WebSphere Application ServerTM
Release 9.0