| java.lang.Object net.sourceforge.jtds.jdbc.NtlmAuth
NtlmAuth | public class NtlmAuth (Code) | | This class calculates the two "responses" to the nonce supplied by the server
as a part of NTLM authentication.
Much gratitude to the authors of this page, esp. for NTLMv2 info:
http://davenport.sourceforge.net/ntlm.html
author: Matt Brinkley version: $Id: NtlmAuth.java,v 1.7 2006/06/23 18:00:56 matt_brinkley Exp $ |
Method Summary | |
public static byte[] | answerLmChallenge(String pwd, byte[] nonce) | public static byte[] | answerLmv2Challenge(String domain, String user, String password, byte[] nonce, byte[] clientNonce) | public static byte[] | answerNtChallenge(String password, byte[] nonce) | public static byte[] | answerNtlmv2Challenge(String domain, String user, String password, byte[] nonce, byte[] targetInfo, byte[] clientNonce) | public static byte[] | answerNtlmv2Challenge(String domain, String user, String password, byte[] nonce, byte[] targetInfo, byte[] clientNonce, byte[] timestamp) | public static byte[] | answerNtlmv2Challenge(String domain, String user, String password, byte[] nonce, byte[] targetInfo, byte[] clientNonce, long now) | public static byte[] | createTimestamp(long time) Creates a timestamp in the format used in NTLMv2 responses. |
createTimestamp | public static byte[] createTimestamp(long time)(Code) | | Creates a timestamp in the format used in NTLMv2 responses.
Public so it could be unit tested.
Parameters: time - current time, as returned from System.currentTimeMillis little-endian byte array of number of tenths of microseconds sinceJan 1, 1601 |
|
|