private static Set parseRealmData(String data,String orgDN){
  Set returnData=Collections.EMPTY_SET;
  String realm=DNMapper.orgNameToRealmName(orgDN);
  if (data != null && data.length() != 0) {
    StringTokenizer stz=new StringTokenizer(data,ISAuthConstants.PIPE_SEPARATOR);
    returnData=new HashSet();
    while (stz.hasMoreTokens()) {
      String realmData=(String)stz.nextToken();
      if (realmData != null && realmData.length() != 0) {
        int index=realmData.indexOf(ISAuthConstants.COLON);
        if (index == -1) {
          realmData=toRealmQualifiedAuthnData(realm,realmData);
        }
        returnData.add(realmData);
      }
    }
  }
  if (utilDebug.messageEnabled()) {
    utilDebug.message("parseRealmData:Input data : " + data);
    utilDebug.message("parseRealmData:returnData : " + returnData);
  }
  return returnData;
}

private static Set parseRealmData ( String data , String orgDN ) { Set returnData = Collections . EMPTY_SET ; String realm = DNMapper . orgNameToRealmName ( orgDN ) ; if ( data != null && data . length ( ) != 0 ) { StringTokenizer stz = new StringTokenizer ( data , ISAuthConstants . PIPE_SEPARATOR ) ; returnData = new HashSet ( ) ; while ( stz . hasMoreTokens ( ) ) { String realmData = ( String ) stz . nextToken ( ) ; if ( realmData != null && realmData . length ( ) != 0 ) { int index = realmData . indexOf ( ISAuthConstants . COLON ) ; if ( index == - 1 ) { realmData = toRealmQualifiedAuthnData ( realm , realmData ) ; } returnData . add ( realmData ) ; } } } if ( utilDebug . messageEnabled ( ) ) { utilDebug . message ( "parseRealmData:Input data : " + data ) ; utilDebug . message ( "parseRealmData:returnData : " + returnData ) ; } return returnData ; }
returns the set of all authenticated realm qualified scheme names or levels or service names .
