}
}
public byte[] getAuthInfo() throws ServiceLocatorException {
if (getUser() == null) {
throw new ServiceLocatorException(
"Service Locator server requires authorization, but no user is defined.");
}
if (getPassword() == null) {
throw new ServiceLocatorException(
"Service Locator server requires authorization, but no password is defined.");
}
return (getUser() + ":" + getPassword()).getBytes(UTF8_CHAR_SET);
}