HTTPAuthenticationScheme scheme = null;
if (attrValue == null) {
setValid(false);
getErrorReporter().reportError(new ErrorLocatorImpl(), // TODO
// line&col
// nos.
"WSDL508", new Object[] { attrValue },
ErrorReporter.SEVERITY_ERROR);
} else if (attrValue.equals(HTTPAuthenticationScheme.BASIC.toString())) {
setValid(true);
scheme = HTTPAuthenticationScheme.BASIC;
} else if (attrValue.equals(HTTPAuthenticationScheme.DIGEST.toString())) {
setValid(true);
scheme = HTTPAuthenticationScheme.DIGEST;
} else {
setValid(false);
getErrorReporter().reportError(new ErrorLocatorImpl(), // TODO
// line&col
// nos.
"WSDL508", new Object[] { attrValue },
ErrorReporter.SEVERITY_ERROR);
}