clearPasscodeState is a public method, used to clear any passcode state associated with the current user, but subject to the overall app passcode policies.  So for instance, clearPasscodeState would attempt to reset the passcode state for current user A, but if configured user B still has a passcode policy enforced, this will effectively not do anything.

clearAllPasscode state is a private method, and is used to actually clear the passcode state of the app, bypassing any passcode policy settings.  It's necessary when the user fails to validate his/her passcode, clicks a Forgot Passcode link, etc.  At the point of such actions, passcode policies can no longer apply to the app, and should be followed further upstream with a logout of all users, app reset, etc.