11.07.2015 Views

Borland VisiBroker® 7.0 - Borland Technical Publications

Borland VisiBroker® 7.0 - Borland Technical Publications

Borland VisiBroker® 7.0 - Borland Technical Publications

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.

LoginContext class and LoginModule interfaceAuthentication and stacked LoginModulesAuthentication proceeds in two phases in order to assure that all stacked LoginModulessucceed (or fail, otherwise).1 The first phase is the “login phase,” during which the LoginContext invokes login()on all configured LoginModules and instructs each to attempt authentication.2 If all necessary LoginModules successfully pass, the second, “commit phase”begins, and LoginContext calls commit() on each LoginModule to formally end theauthentication process. During this phase the LoginModules also populate thesubject with whatever credentials and/or authenticated principals are necessary forcontinued work.NoteIf either phase fails, the LoginContext calls abort() on each LoginModule and ends allauthentication attempts.Chapter 3: Authentication 29

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

Saved successfully!

Ooh no, something went wrong!