public void replaceCallback(int state,int index,Callback callback) throws AuthLoginException {
  if (debug.messageEnabled()) {
    debug.message("ReplaceCallback : state=" + state + ", index="+ index+ ", callback="+ callback);
  }
  if (state > stateLength) {
    throw new AuthLoginException(bundleName,"invalidState",new Object[]{new Integer(state)});
  }
  Callback[] ext=getCallback(state);
  if (index < 0 || index >= ext.length) {
    throw new AuthLoginException(bundleName,"invalidCallbackIndex",new Object[]{new Integer(index)});
  }
  if (callback == null) {
    throw new AuthLoginException(bundleName,"nullCallback",null);
  }
  ext[index]=callback;
  ((Callback[])internal.get(state - 1))[index + 1]=callback;
}

public void replaceCallback ( int state , int index , Callback callback ) throws AuthLoginException { if ( debug . messageEnabled ( ) ) { debug . message ( "ReplaceCallback : state=" + state + ", index=" + index + ", callback=" + callback ) ; } if ( state > stateLength ) { throw new AuthLoginException ( bundleName , "invalidState" , new Object [ ] { new Integer ( state ) } ) ; } Callback [ ] ext = getCallback ( state ) ; if ( index < 0 || index >= ext . length ) { throw new AuthLoginException ( bundleName , "invalidCallbackIndex" , new Object [ ] { new Integer ( index ) } ) ; } if ( callback == null ) { throw new AuthLoginException ( bundleName , "nullCallback" , null ) ; } ext [ index ] = callback ; ( ( Callback [ ] ) internal . get ( state - 1 ) ) [ index + 1 ] = callback ; }
replace callback object for a specific state .
