public FSIDPAuthenticationContextInfo(String infoString) throws FSException {
  if (infoString == null) {
    throw new FSException("nullInput",null);
  }
  StringTokenizer stk=new StringTokenizer(infoString,IFSConstants.ATTRIBUTE_SEPARATOR);
  while (stk.hasMoreTokens()) {
    String token=stk.nextToken();
    int equalSign=token.indexOf(IFSConstants.KEY_VALUE_SEPARATOR);
    if (equalSign == -1) {
      throw new FSException("wrongInput",null);
    }
    try {
      String key=token.substring(0,equalSign);
      String value=token.substring(equalSign + 1,token.length());
      if (key.equalsIgnoreCase(IFSConstants.AUTH_CONTEXT_NAME)) {
        authenticationContext=value;
      }
 else       if (key.equalsIgnoreCase(IFSConstants.MODULE_INDICATOR_KEY)) {
        moduleIndicatorKey=value;
      }
 else       if (key.equalsIgnoreCase(IFSConstants.MODULE_INDICATOR_VALUE)) {
        moduleIndicatorValue=value;
      }
 else       if (key.equalsIgnoreCase(IFSConstants.LEVEL)) {
        level=Integer.parseInt(value);
      }
 else {
        throw new FSException("wrongInput",null);
      }
    }
 catch (    IndexOutOfBoundsException ie) {
      throw new FSException("wrongInput",null);
    }
catch (    NumberFormatException ne) {
      throw new FSException("wrongInput",null);
    }
  }
  if (authenticationContext == null || moduleIndicatorKey == null || moduleIndicatorValue == null || level == -1) {
    throw new FSException("wrongInput",null);
  }
}

public FSIDPAuthenticationContextInfo ( String infoString ) throws FSException { if ( infoString == null ) { throw new FSException ( "nullInput" , null ) ; } StringTokenizer stk = new StringTokenizer ( infoString , IFSConstants . ATTRIBUTE_SEPARATOR ) ; while ( stk . hasMoreTokens ( ) ) { String token = stk . nextToken ( ) ; int equalSign = token . indexOf ( IFSConstants . KEY_VALUE_SEPARATOR ) ; if ( equalSign == - 1 ) { throw new FSException ( "wrongInput" , null ) ; } try { String key = token . substring ( 0 , equalSign ) ; String value = token . substring ( equalSign + 1 , token . length ( ) ) ; if ( key . equalsIgnoreCase ( IFSConstants . AUTH_CONTEXT_NAME ) ) { authenticationContext = value ; } else if ( key . equalsIgnoreCase ( IFSConstants . MODULE_INDICATOR_KEY ) ) { moduleIndicatorKey = value ; } else if ( key . equalsIgnoreCase ( IFSConstants . MODULE_INDICATOR_VALUE ) ) { moduleIndicatorValue = value ; } else if ( key . equalsIgnoreCase ( IFSConstants . LEVEL ) ) { level = Integer . parseInt ( value ) ; } else { throw new FSException ( "wrongInput" , null ) ; } } catch ( IndexOutOfBoundsException ie ) { throw new FSException ( "wrongInput" , null ) ; } catch ( NumberFormatException ne ) { throw new FSException ( "wrongInput" , null ) ; } } if ( authenticationContext == null || moduleIndicatorKey == null || moduleIndicatorValue == null || level == - 1 ) { throw new FSException ( "wrongInput" , null ) ; } }
constructs a new object .
