url = url.substring(0, pos);
}
origScopes = input.readUTF();
scopeList = stringToList(origScopes, ",");
if (scopeList.isEmpty()) {
throw new ServiceLocationException(
ServiceLocationException.PARSE_ERROR, "received DAadvert "
+ "with empty scope list");
}
origAttrs = input.readUTF();
attrList = attributeStringToList(origAttrs);
spi = input.readUTF();
authBlocks = AuthenticationBlock.parse(input);
if (SLPCore.CONFIG.getSecurityEnabled()) {
if (!verify()) {
throw new ServiceLocationException(
ServiceLocationException.AUTHENTICATION_FAILED,
"could not verify " + toString());
}
}
}