パッケージ jcifs.smb
クラス NtlmPasswordAuthentication
- java.lang.Object
-
- jcifs.smb.NtlmPasswordAuthenticator
-
- jcifs.smb.NtlmPasswordAuthentication
-
- すべての実装されたインタフェース:
Serializable
,Cloneable
,Principal
,Credentials
,CredentialsInternal
@Deprecated public class NtlmPasswordAuthentication extends NtlmPasswordAuthenticator
推奨されていません。This class stores and encrypts NTLM user credentials. The default credentials are retrieved from the jcifs.smb.client.domain, jcifs.smb.client.username, and jcifs.smb.client.password properties.Read jCIFS Exceptions and NtlmAuthenticator for related information.
- 関連項目:
- 直列化された形式
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 NtlmPasswordAuthentication(String domain, String username, byte[] challenge, byte[] ansiHash, byte[] unicodeHash)
推奨されていません。Create an NtlmPasswordAuthentication object with raw password hashes.NtlmPasswordAuthentication(CIFSContext tc)
推奨されていません。Construct anonymous credentialsNtlmPasswordAuthentication(CIFSContext tc, String userInfo)
推奨されていません。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)
推奨されていません。Create an NtlmPasswordAuthentication object from a domain, username, and password.
-
メソッドの概要
すべてのメソッド staticメソッド インスタンス・メソッド concreteメソッド 推奨されていないメソッド 修飾子とタイプ メソッド 説明 boolean
areHashesExternal()
推奨されていません。NtlmPasswordAuthentication
clone()
推奨されていません。protected static void
cloneInternal(NtlmPasswordAuthentication to, NtlmPasswordAuthentication from)
推奨されていません。boolean
equals(Object obj)
推奨されていません。Compares two NtlmPasswordAuthentication objects for equality.byte[]
getAnsiHash(CIFSContext tc, byte[] chlng)
推奨されていません。Computes the 24 byte ANSI password hash given the 8 byte server challenge.protected CIFSContext
getContext()
推奨されていません。byte[]
getUnicodeHash(CIFSContext tc, byte[] chlng)
推奨されていません。Computes the 24 byte Unicode password hash given the 8 byte server challenge.byte[]
getUserSessionKey(CIFSContext tc, byte[] chlng)
推奨されていません。Returns the effective user session key.void
getUserSessionKey(CIFSContext tc, byte[] chlng, byte[] dest, int offset)
推奨されていません。Calculates the effective user session key.-
クラスから継承されたメソッド jcifs.smb.NtlmPasswordAuthenticator
cloneInternal, createContext, getName, getPassword, getSigningKey, getSpecifiedUserDomain, getSubject, getUserDomain, getUsername, hashCode, isAnonymous, isGuest, isPreferredMech, refresh, toString, unwrap
-
-
-
-
コンストラクタの詳細
-
NtlmPasswordAuthentication
public NtlmPasswordAuthentication(CIFSContext tc)
推奨されていません。Construct anonymous credentials- パラメータ:
tc
-
-
NtlmPasswordAuthentication
public NtlmPasswordAuthentication(CIFSContext tc, String userInfo)
推奨されていません。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.- パラメータ:
tc
-userInfo
-
-
NtlmPasswordAuthentication
public NtlmPasswordAuthentication(CIFSContext tc, String domain, String username, String password)
推奨されていません。Create an NtlmPasswordAuthentication object from a domain, username, and password. Parameters that are null will be substituted with jcifs.smb.client.domain, jcifs.smb.client.username, jcifs.smb.client.password property values.- パラメータ:
tc
- context to usedomain
-username
-password
-
-
NtlmPasswordAuthentication
public NtlmPasswordAuthentication(String domain, String username, byte[] challenge, byte[] ansiHash, byte[] unicodeHash)
推奨されていません。Create an NtlmPasswordAuthentication object with raw password hashes. This is used exclusively by the jcifs.http.NtlmSsp class which is in turn used by NTLM HTTP authentication functionality.- パラメータ:
domain
-username
-challenge
-ansiHash
-unicodeHash
-
-
-
メソッドの詳細
-
getContext
protected CIFSContext getContext()
推奨されていません。
-
clone
public NtlmPasswordAuthentication clone()
推奨されていません。- 定義:
clone
インタフェース内CredentialsInternal
- オーバーライド:
clone
クラス内NtlmPasswordAuthenticator
- 戻り値:
- a copy of the credentials
-
cloneInternal
protected static void cloneInternal(NtlmPasswordAuthentication to, NtlmPasswordAuthentication from)
推奨されていません。- パラメータ:
to
-from
-
-
equals
public boolean equals(Object obj)
推奨されていません。Compares two NtlmPasswordAuthentication objects for equality. Two NtlmPasswordAuthentication objects are equal if their caseless domain and username fields are equal and either both hashes are external and they are equal or both internally supplied passwords are equal. If one NtlmPasswordAuthentication object has external hashes (meaning negotiated via NTLM HTTP Authentication) and the other does not they will not be equal. This is technically not correct however the server 8 byte challenge would be required to compute and compare the password hashes but that it not available with this method.- 定義:
equals
インタフェース内Principal
- オーバーライド:
equals
クラス内NtlmPasswordAuthenticator
- 関連項目:
Object.equals(java.lang.Object)
-
areHashesExternal
public boolean areHashesExternal()
推奨されていません。- 戻り値:
- whether the hashes are externally supplied
-
getAnsiHash
public byte[] getAnsiHash(CIFSContext tc, byte[] chlng) throws GeneralSecurityException
推奨されていません。Computes the 24 byte ANSI password hash given the 8 byte server challenge.- オーバーライド:
getAnsiHash
クラス内NtlmPasswordAuthenticator
- 戻り値:
- the hash for the given challenge
- 例外:
GeneralSecurityException
- 関連項目:
NtlmPasswordAuthenticator.getAnsiHash(jcifs.CIFSContext, byte[])
-
getUnicodeHash
public byte[] getUnicodeHash(CIFSContext tc, byte[] chlng) throws GeneralSecurityException
推奨されていません。Computes the 24 byte Unicode password hash given the 8 byte server challenge.- オーバーライド:
getUnicodeHash
クラス内NtlmPasswordAuthenticator
- 戻り値:
- the hash for the given challenge
- 例外:
GeneralSecurityException
- 関連項目:
NtlmPasswordAuthenticator.getUnicodeHash(jcifs.CIFSContext, byte[])
-
getUserSessionKey
public byte[] getUserSessionKey(CIFSContext tc, byte[] chlng)
推奨されていません。Returns the effective user session key.- オーバーライド:
getUserSessionKey
クラス内NtlmPasswordAuthenticator
chlng
- The server challenge.- 戻り値:
- A
byte[]
containing the effective user session key, used in SMB MAC signing and NTLMSSP signing and sealing. - 関連項目:
NtlmPasswordAuthenticator.getUserSessionKey(jcifs.CIFSContext, byte[])
-
getUserSessionKey
public void getUserSessionKey(CIFSContext tc, byte[] chlng, byte[] dest, int offset) throws SmbException
推奨されていません。Calculates the effective user session key.- オーバーライド:
getUserSessionKey
クラス内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)
-
-