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 login
method), then this method associates a Krb5Principal
with the Subject
located in the LoginModule
. It adds Kerberos Credentials to the the Subject's private credentials set. If this LoginModule's own authentication attempted failed, then this method removes any state that was originally saved.
@exception LoginException if the commit fails. @return true if this LoginModule's own login and commitattempts succeeded, or false otherwise.
|
|
|
|