public class

Ntlm

extends Object
java.lang.Object
   ↳ com.google.code.com.sun.mail.auth.Ntlm

Class Overview

NTLMAuthentication:

Summary

Fields
private Cipher cipher
private PrintStream debugout
private SecretKeyFactory fac
private static char[] hex
private String hostname
private MD4 md4
private String ntdomain
private String password
private byte[] type1
private byte[] type3
private String username
Public Constructors
Ntlm(String ntdomain, String hostname, String username, String password, PrintStream debugout)
Create an NTLM authenticator.
Public Methods
String generateType1Msg(int flags)
String generateType3Msg(String challenge)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private Cipher cipher

private PrintStream debugout

private SecretKeyFactory fac

private static char[] hex

private String hostname

private MD4 md4

private String ntdomain

private String password

private byte[] type1

private byte[] type3

private String username

Public Constructors

public Ntlm (String ntdomain, String hostname, String username, String password, PrintStream debugout)

Create an NTLM authenticator. Username may be specified as domain\\username in the Authenticator. If this notation is not used, then the domain will be taken from the ntdomain parameter.

Parameters
ntdomain
hostname
username
password
debugout

Public Methods

public String generateType1Msg (int flags)

Parameters
flags

public String generateType3Msg (String challenge)

Parameters
challenge