This method is called if the LoginContext's overall authentication succeeded (the relevant REQUIRED, REQUISITE, SUFFICIENT and OPTIONAL LoginModules succeeded).
If this LoginModule's own authentication attempt succeeded (checked by retrieving the private state saved by the {@code login} method), then this method associates relevantPrincipals and Credentials with the {@code Subject} located in the{@code LoginModule}. If this LoginModule's own authentication attempted failed, then this method removes/destroys any state that was originally saved.
@exception LoginException if the commit fails @return true if this method succeeded, or false if this{@code LoginModule} should be ignored.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|