NtlmPasswordAuthenticator instead@Deprecated public class NtlmPasswordAuthentication extends NtlmPasswordAuthenticator
Read jCIFS Exceptions and NtlmAuthenticator for related information.
NtlmPasswordAuthenticator.AuthenticationType| Constructor and Description |
|---|
NtlmPasswordAuthentication(CIFSContext tc)
Deprecated.
Construct anonymous credentials
|
NtlmPasswordAuthentication(CIFSContext tc,
String userInfo)
Deprecated.
Create an NtlmPasswordAuthentication object from the userinfo
component of an SMB URL like "domain;user:pass".
|
NtlmPasswordAuthentication(CIFSContext tc,
String domain,
String username,
String password)
Deprecated.
Create an NtlmPasswordAuthentication object from a
domain, username, and password.
|
NtlmPasswordAuthentication(String domain,
String username,
byte[] challenge,
byte[] ansiHash,
byte[] unicodeHash)
Deprecated.
Create an NtlmPasswordAuthentication object with raw password
hashes.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
areHashesExternal()
Deprecated.
|
NtlmPasswordAuthentication |
clone()
Deprecated.
|
boolean |
equals(Object obj)
Deprecated.
Compares two NtlmPasswordAuthentication objects for
equality.
|
byte[] |
getAnsiHash(CIFSContext tc,
byte[] chlng)
Deprecated.
Computes the 24 byte ANSI password hash given the 8 byte server challenge.
|
byte[] |
getUnicodeHash(CIFSContext tc,
byte[] chlng)
Deprecated.
Computes the 24 byte Unicode password hash given the 8 byte server challenge.
|
byte[] |
getUserSessionKey(CIFSContext tc,
byte[] chlng)
Deprecated.
Returns the effective user session key.
|
void |
getUserSessionKey(CIFSContext tc,
byte[] chlng,
byte[] dest,
int offset)
Deprecated.
Calculates the effective user session key.
|
createContext, getName, getPassword, getSigningKey, getSpecifiedUserDomain, getSubject, getUserDomain, getUsername, hashCode, isAnonymous, isGuest, isPreferredMech, refresh, toString, unwrappublic NtlmPasswordAuthentication(CIFSContext tc)
tc - public NtlmPasswordAuthentication(CIFSContext tc, String userInfo)
tc - userInfo - public NtlmPasswordAuthentication(CIFSContext tc, String domain, String username, String password)
tc - context to usedomain - username - password - public NtlmPasswordAuthentication(String domain, String username, byte[] challenge, byte[] ansiHash, byte[] unicodeHash)
domain - username - challenge - ansiHash - unicodeHash - public NtlmPasswordAuthentication clone()
clone in interface CredentialsInternalclone in class NtlmPasswordAuthenticatorpublic boolean equals(Object obj)
equals in interface Principalequals in class NtlmPasswordAuthenticatorObject.equals(java.lang.Object)public boolean areHashesExternal()
public byte[] getAnsiHash(CIFSContext tc, byte[] chlng) throws GeneralSecurityException
getAnsiHash in class NtlmPasswordAuthenticatorGeneralSecurityExceptionNtlmPasswordAuthenticator.getAnsiHash(jcifs.CIFSContext, byte[])public byte[] getUnicodeHash(CIFSContext tc, byte[] chlng) throws GeneralSecurityException
getUnicodeHash in class NtlmPasswordAuthenticatorGeneralSecurityExceptionNtlmPasswordAuthenticator.getUnicodeHash(jcifs.CIFSContext, byte[])public byte[] getUserSessionKey(CIFSContext tc, byte[] chlng)
getUserSessionKey in class NtlmPasswordAuthenticatorchlng - The server challenge.byte[] containing the effective user session key,
used in SMB MAC signing and NTLMSSP signing and sealing.NtlmPasswordAuthenticator.getUserSessionKey(jcifs.CIFSContext, byte[])public void getUserSessionKey(CIFSContext tc, byte[] chlng, byte[] dest, int offset) throws SmbException
getUserSessionKey in class NtlmPasswordAuthenticatortc - context to usechlng - The server challenge.dest - The destination array in which the user session key will be
placed.offset - The offset in the destination array at which the
session key will start.SmbExceptionNtlmPasswordAuthenticator.getUserSessionKey(jcifs.CIFSContext, byte[], byte[], int)Copyright © 2023. All rights reserved.