public final class NtlmUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
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) |
public static byte[] getNTLMv2Response(byte[] responseKeyNT,
byte[] serverChallenge,
byte[] clientChallenge,
long nanos1601,
byte[] avPairs)
responseKeyNT - serverChallenge - clientChallenge - nanos1601 - avPairs - public static byte[] getLMv2Response(byte[] responseKeyLM,
byte[] serverChallenge,
byte[] clientChallenge)
responseKeyLM - serverChallenge - clientChallenge - public static byte[] nTOWFv2(String domain, String username, String password)
domain - username - password - public static byte[] nTOWFv2(String domain, String username, byte[] passwordHash)
domain - username - passwordHash - NT password hashpublic static byte[] getNTHash(String password)
password - public static byte[] nTOWFv1(String password)
password - public static byte[] getNTLM2Response(byte[] passwordHash,
byte[] serverChallenge,
byte[] clientChallenge)
throws GeneralSecurityException
passwordHash - serverChallenge - clientChallenge - GeneralSecurityExceptionpublic static byte[] getLMv2Response(String domain, String user, String password, byte[] challenge, byte[] clientChallenge) throws GeneralSecurityException
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).GeneralSecurityExceptionpublic static byte[] getLMv2Response(String domain, String user, byte[] passwordHash, byte[] challenge, byte[] clientChallenge) throws GeneralSecurityException
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).GeneralSecurityExceptionpublic static byte[] getNTLMResponse(String password, byte[] challenge) throws GeneralSecurityException
password - challenge - GeneralSecurityExceptionpublic static byte[] getNTLMResponse(byte[] passwordHash,
byte[] challenge)
throws GeneralSecurityException
passwordHash - NT Hashchallenge - GeneralSecurityExceptionpublic static byte[] getPreNTLMResponse(CIFSContext tc, String password, byte[] challenge) throws GeneralSecurityException
tc - password - challenge - GeneralSecurityExceptionCopyright © 2021. All rights reserved.