@Deprecated public class NtlmPasswordAuthentication extends NtlmPasswordAuthenticator
Read jCIFS Exceptions and NtlmAuthenticator for related information.
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, unwrap
public 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 CredentialsInternal
clone
in class NtlmPasswordAuthenticator
public boolean equals(Object obj)
equals
in interface Principal
equals
in class NtlmPasswordAuthenticator
Object.equals(java.lang.Object)
public boolean areHashesExternal()
public byte[] getAnsiHash(CIFSContext tc, byte[] chlng) throws GeneralSecurityException
getAnsiHash
in class NtlmPasswordAuthenticator
GeneralSecurityException
NtlmPasswordAuthenticator.getAnsiHash(jcifs.CIFSContext, byte[])
public byte[] getUnicodeHash(CIFSContext tc, byte[] chlng) throws GeneralSecurityException
getUnicodeHash
in class NtlmPasswordAuthenticator
GeneralSecurityException
NtlmPasswordAuthenticator.getUnicodeHash(jcifs.CIFSContext, byte[])
public byte[] getUserSessionKey(CIFSContext tc, byte[] chlng)
getUserSessionKey
in class NtlmPasswordAuthenticator
chlng
- 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 NtlmPasswordAuthenticator
tc
- 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.SmbException
NtlmPasswordAuthenticator.getUserSessionKey(jcifs.CIFSContext, byte[], byte[], int)
Copyright © 2019. All rights reserved.