Maintain RI compatibility.
This is a convenience method which can be used by subclasses
to complete the steps required by RI legacy authentication code.
Most of this should go away if a clean JAAS/Subject based
infrastructure is provided. But for now this must be done.
Note that this method is called after the authentication
has succeeded. If authentication failed do not call this method.
A lot of the RI behavior is still present here. Some of the
most notable points to remember: