Module jcifs

Class NtlmPasswordAuthentication

java.lang.Object
org.codelibs.jcifs.smb.impl.NtlmPasswordAuthenticator
org.codelibs.jcifs.smb.impl.NtlmPasswordAuthentication
All Implemented Interfaces:
Serializable, Cloneable, Principal, Credentials, CredentialsInternal

@Deprecated public class NtlmPasswordAuthentication extends NtlmPasswordAuthenticator
Deprecated.
This class stores and encrypts NTLM user credentials. The default credentials are retrieved from the org.codelibs.jcifs.smb.impl.client.domain, org.codelibs.jcifs.smb.impl.client.username, and org.codelibs.jcifs.smb.impl.client.password properties.

Read jCIFS Exceptions and NtlmAuthenticator for related information.

See Also:
  • Constructor Details

    • NtlmPasswordAuthentication

      public NtlmPasswordAuthentication(CIFSContext tc)
      Deprecated.
      Construct anonymous credentials
      Parameters:
      tc - the CIFS context to use
    • NtlmPasswordAuthentication

      public NtlmPasswordAuthentication(CIFSContext tc, String userInfo)
      Deprecated.
      Create an NtlmPasswordAuthentication object from the userinfo component of an SMB URL like "domain;user:pass". This constructor is used internally be jCIFS when parsing SMB URLs.
      Parameters:
      tc - the CIFS context to use
      userInfo - the user information string in the format "domain;user:pass"
    • NtlmPasswordAuthentication

      public NtlmPasswordAuthentication(CIFSContext tc, String domain, String username, String password)
      Deprecated.
      Create an NtlmPasswordAuthentication object from a domain, username, and password. Parameters that are null will be substituted with org.codelibs.jcifs.smb.impl.client.domain, org.codelibs.jcifs.smb.impl.client.username, org.codelibs.jcifs.smb.impl.client.password property values.
      Parameters:
      tc - context to use
      domain - the authentication domain
      username - the username to authenticate with
      password - the password to authenticate with
    • NtlmPasswordAuthentication

      public NtlmPasswordAuthentication(String domain, String username, byte[] challenge, byte[] ansiHash, byte[] unicodeHash)
      Deprecated.
      Create an NtlmPasswordAuthentication object with raw password hashes. This is used exclusively by the org.codelibs.jcifs.smb.http.NtlmSsp class which is in turn used by NTLM HTTP authentication functionality.
      Parameters:
      domain - the authentication domain
      username - the username to authenticate with
      challenge - the server challenge bytes
      ansiHash - the ANSI password hash
      unicodeHash - the Unicode password hash
  • Method Details