private int injectCallbacks(final Callback[] realCallbacks,final int state) throws AuthLoginException {
  if (authenticationContext.hasMoreRequirements()) {
    if (realCallbacks != null) {
      authenticationContext.submitRequirements(realCallbacks);
    }
    if (authenticationContext.hasMoreRequirements()) {
      return injectAndReturn(state);
    }
 else {
      return finishLoginModule(state);
    }
  }
  return processError(bundle.getString("invalidLoginState"),"SAML2 :: injectCallbacks() : Authentication Module - invalid login state");
}

private int injectCallbacks ( final Callback [ ] realCallbacks , final int state ) throws AuthLoginException { if ( authenticationContext . hasMoreRequirements ( ) ) { if ( realCallbacks != null ) { authenticationContext . submitRequirements ( realCallbacks ) ; } if ( authenticationContext . hasMoreRequirements ( ) ) { return injectAndReturn ( state ) ; } else { return finishLoginModule ( state ) ; } } return processError ( bundle . getString ( "invalidLoginState" ) , "SAML2 :: injectCallbacks() : Authentication Module - invalid login state" ) ; }
submits completed callbacks ( from the just - completed step - the first time this is called realcallbacks should be null as there is no just - completed step in the internal auth module ) , and injects the next lot if there are any .
