|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.wsspi.wim.VMMSAFMappingModule
public class VMMSAFMappingModule
VMMSAFMappingModule demonstrates a custom login module that maps the existing WSPrincipal from the shared state to a z/OS user id for a Federated Repository. The following values will be set into the shared state if authentication succeeds. If authentication fails, this login module will still indicate success, but no values are set into the shared state. AttributeNameConstants.ZOS_USERID AttributeNameConstants.ZOS_AUDIT_STRING AttributeNameConstants.CALLER_PRINCIPAL_CLASS This login module does not use any callbacks, nor does it modify the Subject in any way.
Field Summary | |
---|---|
static java.lang.String |
CLASSNAME
|
Constructor Summary | |
---|---|
VMMSAFMappingModule()
Construct an uninitialized mapping module object. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CLASSNAME
Constructor Detail |
---|
public VMMSAFMappingModule()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |