03.05.2015 Views

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

application<br />

LoginContext LoginModule CallbackHandler Principal Action<br />

instantiate<br />

login<br />

reads the login_config<br />

to find the<br />

LoginModule<br />

implementations<br />

put nameCallback<br />

put passwordCallback<br />

handle Callbacks<br />

get username<br />

get password<br />

verify username/password<br />

add principal<br />

to subject<br />

new<br />

subject.doAS<br />

Figure 8-8 JAAS sequence diagram<br />

The step-by-step process is described below:<br />

1. The application starts the login process using JAAS.<br />

2. The LoginContext is initialized.<br />

3. During the login process, executed in the LoginContext, a Principal will be<br />

authenticated using the specified callback handler.<br />

4. If the authentication was successful the LoginContext commits the login, the<br />

Principal gets assigned to the Subject.<br />

5. The application gets the Subject from the LoginContext.<br />

6. The doAs method attempts a secured operation under the acquired Subject.<br />

208 <strong>IBM</strong> <strong>WebSphere</strong> <strong>V5.0</strong> <strong>Security</strong> Handbook

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!