code: public boolean checkAuthenticationResult(int requestCode, int resultCode) {
          if (requestCode != authenticationRequestCode || decryptCallback == null) {
              return false;
          }
          if (resultCode == Activity.RESULT_OK) {
              continueGetCredentials(decryptCallback);
          } else {
              decryptCallback.onFailure(new CredentialsManagerException("The user didn't pass the authentication challenge."));
              decryptCallback = null;
          }
          return true;
      }
docs: Checks the result after showing the LockScreen to the user.
  Must be called from the {@link Activity#onActivityResult(int, int, Intent)} method with the received parameters.
  It's safe to call this method even if {@link SecureCredentialsManager#requireAuthentication(Activity, int, String, String)} was unsuccessful.
  
  @param requestCode the request code received in the onActivityResult call.
  @param resultCode  the result code received in the onActivityResult call.
  @return true if the result was handled, false otherwise.