java.lang.Object
org.codelibs.jcifs.smb.impl.NtlmPasswordAuthenticator
org.codelibs.jcifs.smb.impl.NtlmNtHashAuthenticator
- All Implemented Interfaces:
Serializable,Cloneable,Principal,Credentials,CredentialsInternal
Authenticator directly specifing the user's NT hash
- Author:
- mbechler
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.codelibs.jcifs.smb.impl.NtlmPasswordAuthenticator
NtlmPasswordAuthenticator.AuthenticationType -
Constructor Summary
ConstructorsConstructorDescriptionNtlmNtHashAuthenticator(String domain, String username, byte[] passwordHash) Create username/password credentials with specified domainNtlmNtHashAuthenticator(String domain, String username, String passwordHashHex) Create username/password credentials with specified domain -
Method Summary
Modifier and TypeMethodDescriptionclone()Create a copy of the credentials.protected byte[]Get the NT hash of the passwordMethods inherited from class org.codelibs.jcifs.smb.impl.NtlmPasswordAuthenticator
cloneInternal, createContext, equals, getAnsiHash, getName, getPassword, getSigningKey, getSpecifiedUserDomain, getSubject, getUnicodeHash, getUserDomain, getUsername, getUserSessionKey, getUserSessionKey, guessAuthenticationType, hashCode, isAnonymous, isGuest, isPreferredMech, refresh, toString, unwrap
-
Constructor Details
-
NtlmNtHashAuthenticator
Create username/password credentials with specified domain- Parameters:
domain- the authentication domainusername- the usernamepasswordHash- NT password hash
-
NtlmNtHashAuthenticator
Create username/password credentials with specified domain- Parameters:
domain- the authentication domainusername- the usernamepasswordHashHex- NT password hash, hex encoded
-
-
Method Details
-
getNTHash
protected byte[] getNTHash()Get the NT hash of the password- Overrides:
getNTHashin classNtlmPasswordAuthenticator- Returns:
- the NT hash
- See Also:
-
clone
Description copied from interface:CredentialsInternalCreate a copy of the credentials.- Specified by:
clonein interfaceCredentialsInternal- Overrides:
clonein classNtlmPasswordAuthenticator- Returns:
- a copy of the credentials
-