private static class JCIFSEngine implements NTLMEngine {
public String generateType1Msg(String domain, String workstation) throws NTLMEngineException {
Type1Message type1Message = new Type1Message(Type1Message.getDefaultFlags(), domain, workstation);
return Base64.encode(type1Message.toByteArray());
}
public String generateType3Msg(String username, String password, String domain, String workstation, String challenge) throws NTLMEngineException {
Type2Message type2Message = decodeType2Message(challenge);
Type3Message type3Message = new Type3Message(type2Message, password, domain, username, workstation, Type3Message.getDefaultFlags());