public class VMMSAFMappingModule
extends java.lang.Object
implements javax.security.auth.spi.LoginModule
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME |
Constructor and Description |
---|
VMMSAFMappingModule()
Construct an uninitialized mapping module object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
abort()
Method to abort the authentication process (Phase 2).
|
boolean |
commit()
Method to commit the authentication result.
|
void |
initialize(javax.security.auth.Subject newSubject,
javax.security.auth.callback.CallbackHandler newCallbackHandler,
java.util.Map newSharedState,
java.util.Map newOptions)
Initialize this login module.
|
boolean |
login()
Method to map the WSPrincipal to a ZOS_USERID
This method derives a ZOS_USERID and stores it into the Shared State for use by a later
Login Module.
|
boolean |
logout()
Method which logs out a Subject.
|
public VMMSAFMappingModule()
public void initialize(javax.security.auth.Subject newSubject, javax.security.auth.callback.CallbackHandler newCallbackHandler, java.util.Map newSharedState, java.util.Map newOptions)
initialize
in interface javax.security.auth.spi.LoginModule
subject
- The subject that this LoginContext is authenticatingcallbackHandler
- A CallbackHandler for communicating with the end user
to gather login information (e.g., username and password).sharedState
- The state shared with other configured login modules.options
- The options specified in the login configuration for this particular login module.public boolean login() throws javax.security.auth.login.LoginException
login
in interface javax.security.auth.spi.LoginModule
javax.security.auth.login.LoginException
- if the authentication fails, which is impossible for this Login Modulepublic boolean commit() throws javax.security.auth.login.LoginException
commit
in interface javax.security.auth.spi.LoginModule
javax.security.auth.login.LoginException
- if the commit fails, which cannot happen in this Login Modulepublic boolean abort() throws javax.security.auth.login.LoginException
abort
in interface javax.security.auth.spi.LoginModule
javax.security.auth.login.LoginException
- if the abort fails, which cannot happen in this Login Modulepublic boolean logout() throws javax.security.auth.login.LoginException
logout
in interface javax.security.auth.spi.LoginModule
javax.security.auth.login.LoginException
- if the logout fails, which cannot happen in the Login Module