public int process(Callback[] callbacks,int state) throws AuthLoginException {
  debug.message("MSISDN : in process ..");
  if (errorMsgKey != null) {
    debug.message("Error initalizing config");
    throw new AuthLoginException(amAuthMSISDN,errorMsgKey,null);
  }
  HttpServletRequest req=getHttpServletRequest();
  String gateway=null;
  String msisdnNumber=null;
  if (req != null) {
    gateway=ClientUtils.getClientIPAddress(req);
    msisdnNumber=getMSISDNNumberFromRequest(req);
  }
 else {
    debug.message("Null request calling sendCallback");
    Map map=sendCallback();
    if (map != null) {
      msisdnNumber=(String)map.get("msisdnNumber");
      gateway=(String)map.get("gateway");
    }
  }
  if (isValidGateway(gateway) && (msisdnNumber != null)) {
    MSISDNValidation msisdnValidation=new MSISDNValidation(options,debug,bundle,locale);
    userTokenId=msisdnValidation.getUserId(msisdnNumber);
    storeUsernamePasswd(userTokenId,null);
  }
 else {
    debug.error("Gateway is invalid OR msisdn number is null");
    throw new AuthLoginException(amAuthMSISDN,"MSISDNValidateEx",null);
  }
  return ISAuthConstants.LOGIN_SUCCEED;
}

public int process ( Callback [ ] callbacks , int state ) throws AuthLoginException { debug . message ( "MSISDN : in process .." ) ; if ( errorMsgKey != null ) { debug . message ( "Error initalizing config" ) ; throw new AuthLoginException ( amAuthMSISDN , errorMsgKey , null ) ; } HttpServletRequest req = getHttpServletRequest ( ) ; String gateway = null ; String msisdnNumber = null ; if ( req != null ) { gateway = ClientUtils . getClientIPAddress ( req ) ; msisdnNumber = getMSISDNNumberFromRequest ( req ) ; } else { debug . message ( "Null request calling sendCallback" ) ; Map map = sendCallback ( ) ; if ( map != null ) { msisdnNumber = ( String ) map . get ( "msisdnNumber" ) ; gateway = ( String ) map . get ( "gateway" ) ; } } if ( isValidGateway ( gateway ) && ( msisdnNumber != null ) ) { MSISDNValidation msisdnValidation = new MSISDNValidation ( options , debug , bundle , locale ) ; userTokenId = msisdnValidation . getUserId ( msisdnNumber ) ; storeUsernamePasswd ( userTokenId , null ) ; } else { debug . error ( "Gateway is invalid OR msisdn number is null" ) ; throw new AuthLoginException ( amAuthMSISDN , "MSISDNValidateEx" , null ) ; } return ISAuthConstants . LOGIN_SUCCEED ; }
validates the authentication credentials .
