パッケージ jcifs.smb
クラス NtlmUtil
- java.lang.Object
-
- jcifs.smb.NtlmUtil
-
public final class NtlmUtil extends Object
Internal use only- 作成者:
- mbechler
-
-
メソッドの概要
すべてのメソッド staticメソッド concreteメソッド 修飾子とタイプ メソッド 説明 static byte[]getLMv2Response(byte[] responseKeyLM, byte[] serverChallenge, byte[] clientChallenge)static byte[]getLMv2Response(String domain, String user, byte[] passwordHash, byte[] challenge, byte[] clientChallenge)Creates the LMv2 response for the supplied information.static byte[]getLMv2Response(String domain, String user, String password, byte[] challenge, byte[] clientChallenge)Creates the LMv2 response for the supplied information.static byte[]getNTHash(String password)static byte[]getNTLM2Response(byte[] passwordHash, byte[] serverChallenge, byte[] clientChallenge)static byte[]getNTLMResponse(byte[] passwordHash, byte[] challenge)Generate the Unicode MD4 hash for the password associated with these credentials.static byte[]getNTLMResponse(String password, byte[] challenge)Generate the Unicode MD4 hash for the password associated with these credentials.static byte[]getNTLMv2Response(byte[] responseKeyNT, byte[] serverChallenge, byte[] clientChallenge, long nanos1601, byte[] avPairs)static byte[]getPreNTLMResponse(CIFSContext tc, String password, byte[] challenge)Generate the ANSI DES hash for the password associated with these credentials.static byte[]nTOWFv1(String password)static byte[]nTOWFv2(String domain, String username, byte[] passwordHash)static byte[]nTOWFv2(String domain, String username, String password)
-
-
-
メソッドの詳細
-
getNTLMv2Response
public static byte[] getNTLMv2Response(byte[] responseKeyNT, byte[] serverChallenge, byte[] clientChallenge, long nanos1601, byte[] avPairs)- パラメータ:
responseKeyNT-serverChallenge-clientChallenge-nanos1601-avPairs-- 戻り値:
- the calculated response
-
getLMv2Response
public static byte[] getLMv2Response(byte[] responseKeyLM, byte[] serverChallenge, byte[] clientChallenge)- パラメータ:
responseKeyLM-serverChallenge-clientChallenge-- 戻り値:
- the calculated response
-
nTOWFv2
public static byte[] nTOWFv2(String domain, String username, String password)
- パラメータ:
domain-username-password-- 戻り値:
- the caclulated mac
-
nTOWFv2
public static byte[] nTOWFv2(String domain, String username, byte[] passwordHash)
- パラメータ:
domain-username-passwordHash- NT password hash- 戻り値:
- the caclulated mac
-
getNTHash
public static byte[] getNTHash(String password)
- パラメータ:
password-- 戻り値:
- nt password hash
-
nTOWFv1
public static byte[] nTOWFv1(String password)
- パラメータ:
password-- 戻り値:
- the calculated hash
-
getNTLM2Response
public static byte[] getNTLM2Response(byte[] passwordHash, byte[] serverChallenge, byte[] clientChallenge) throws GeneralSecurityException- パラメータ:
passwordHash-serverChallenge-clientChallenge-- 戻り値:
- the calculated response
- 例外:
GeneralSecurityException
-
getLMv2Response
public static byte[] getLMv2Response(String domain, String user, String password, byte[] challenge, byte[] clientChallenge) throws GeneralSecurityException
Creates the LMv2 response for the supplied information.- パラメータ:
domain- The domain in which the username exists.user- The username.password- The user's password.challenge- The server challenge.clientChallenge- The client challenge (nonce).- 戻り値:
- the calculated response
- 例外:
GeneralSecurityException
-
getLMv2Response
public static byte[] getLMv2Response(String domain, String user, byte[] passwordHash, byte[] challenge, byte[] clientChallenge) throws GeneralSecurityException
Creates the LMv2 response for the supplied information.- パラメータ:
domain- The domain in which the username exists.user- The username.passwordHash- The user's NT hash.challenge- The server challenge.clientChallenge- The client challenge (nonce).- 戻り値:
- the calculated response
- 例外:
GeneralSecurityException
-
getNTLMResponse
public static byte[] getNTLMResponse(String password, byte[] challenge) throws GeneralSecurityException
Generate the Unicode MD4 hash for the password associated with these credentials.- パラメータ:
password-challenge-- 戻り値:
- the calculated response
- 例外:
GeneralSecurityException
-
getNTLMResponse
public static byte[] getNTLMResponse(byte[] passwordHash, byte[] challenge) throws GeneralSecurityExceptionGenerate the Unicode MD4 hash for the password associated with these credentials.- パラメータ:
passwordHash- NT Hashchallenge-- 戻り値:
- the calculated response
- 例外:
GeneralSecurityException
-
getPreNTLMResponse
public static byte[] getPreNTLMResponse(CIFSContext tc, String password, byte[] challenge) throws GeneralSecurityException
Generate the ANSI DES hash for the password associated with these credentials.- パラメータ:
tc-password-challenge-- 戻り値:
- the calculated response
- 例外:
GeneralSecurityException
-
-