authorization = authMethod.substring(10).trim();
break;
}
}
if (method == null) return null;
NtlmMessage message = (authorization != null) ?
new Type2Message(Base64Decoder.decodeToBytes(authorization)) : null;
reconnect();
if (message == null) {
message = new Type1Message();
if (LM_COMPATIBILITY > 2) {
message.setFlag(NtlmFlags.NTLMSSP_REQUEST_TARGET, true);
}
} else {
String domain = DEFAULT_DOMAIN;
String user = Type3Message.getDefaultUser();
String password = Type3Message.getDefaultPassword();