パッケージ jcifs.smb
クラス NtlmContext
- java.lang.Object
-
- jcifs.smb.NtlmContext
-
- すべての実装されたインタフェース:
SSPContext
public class NtlmContext extends Object implements SSPContext
For initiating NTLM authentication (including NTLMv2). If you want to add NTLMv2 authentication support to something this is what you want to use. See the code for details. Note that JCIFS does not implement the acceptor side of NTLM authentication.
-
-
フィールドの概要
フィールド 修飾子とタイプ フィールド 説明 static org.bouncycastle.asn1.ASN1ObjectIdentifier
NTLMSSP_OID
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 NtlmContext(CIFSContext tc, NtlmPasswordAuthenticator auth, boolean doSigning)
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 byte[]
calculateMIC(byte[] data)
void
dispose()
int
getFlags()
String
getNetbiosName()
byte[]
getServerChallenge()
byte[]
getSigningKey()
org.bouncycastle.asn1.ASN1ObjectIdentifier[]
getSupportedMechs()
byte[]
initSecContext(byte[] token, int offset, int len)
protected void
initSessionSecurity(byte[] mk)
boolean
isEstablished()
boolean
isMICAvailable()
boolean
isPreferredMech(org.bouncycastle.asn1.ASN1ObjectIdentifier mechanism)
boolean
isSupported(org.bouncycastle.asn1.ASN1ObjectIdentifier mechanism)
protected byte[]
makeAuthenticate(byte[] token)
protected byte[]
makeNegotiate(byte[] token)
void
setTargetName(String targetName)
boolean
supportsIntegrity()
String
toString()
void
verifyMIC(byte[] data, byte[] mic)
-
-
-
コンストラクタの詳細
-
NtlmContext
public NtlmContext(CIFSContext tc, NtlmPasswordAuthenticator auth, boolean doSigning)
- パラメータ:
tc
- context to useauth
- credentialsdoSigning
- whether signing is requested
-
-
メソッドの詳細
-
getSupportedMechs
public org.bouncycastle.asn1.ASN1ObjectIdentifier[] getSupportedMechs()
- 定義:
getSupportedMechs
インタフェース内SSPContext
- 戻り値:
- array of supported mechanism OIDs
- 関連項目:
SSPContext.getSupportedMechs()
-
getFlags
public int getFlags()
- 定義:
getFlags
インタフェース内SSPContext
- 戻り値:
- context flags
- 関連項目:
SSPContext.getFlags()
-
isSupported
public boolean isSupported(org.bouncycastle.asn1.ASN1ObjectIdentifier mechanism)
- 定義:
isSupported
インタフェース内SSPContext
- 戻り値:
- whether the specified mechanism is supported
- 関連項目:
SSPContext.isSupported(org.bouncycastle.asn1.ASN1ObjectIdentifier)
-
isPreferredMech
public boolean isPreferredMech(org.bouncycastle.asn1.ASN1ObjectIdentifier mechanism)
- 定義:
isPreferredMech
インタフェース内SSPContext
- 戻り値:
- whether the specified mechanism is preferred
- 関連項目:
SSPContext.isPreferredMech(org.bouncycastle.asn1.ASN1ObjectIdentifier)
-
isEstablished
public boolean isEstablished()
- 定義:
isEstablished
インタフェース内SSPContext
- 戻り値:
- whether the context is established
-
getServerChallenge
public byte[] getServerChallenge()
- 戻り値:
- the server's challenge
-
getSigningKey
public byte[] getSigningKey()
- 定義:
getSigningKey
インタフェース内SSPContext
- 戻り値:
- the signing key for the session
-
getNetbiosName
public String getNetbiosName()
- 定義:
getNetbiosName
インタフェース内SSPContext
- 戻り値:
- the name of the remote endpoint
-
setTargetName
public void setTargetName(String targetName)
- パラメータ:
targetName
- the target's SPN
-
initSecContext
public byte[] initSecContext(byte[] token, int offset, int len) throws SmbException
- 定義:
initSecContext
インタフェース内SSPContext
- 戻り値:
- result token
- 例外:
SmbException
-
makeAuthenticate
protected byte[] makeAuthenticate(byte[] token) throws SmbException
- 例外:
SmbException
-
makeNegotiate
protected byte[] makeNegotiate(byte[] token)
-
initSessionSecurity
protected void initSessionSecurity(byte[] mk)
-
supportsIntegrity
public boolean supportsIntegrity()
- 定義:
supportsIntegrity
インタフェース内SSPContext
- 戻り値:
- whether this mechanisms supports integrity
-
isMICAvailable
public boolean isMICAvailable()
- 定義:
isMICAvailable
インタフェース内SSPContext
- 戻り値:
- whether MIC can be used
-
calculateMIC
public byte[] calculateMIC(byte[] data) throws CIFSException
- 定義:
calculateMIC
インタフェース内SSPContext
- 戻り値:
- MIC
- 例外:
CIFSException
-
verifyMIC
public void verifyMIC(byte[] data, byte[] mic) throws CIFSException
- 定義:
verifyMIC
インタフェース内SSPContext
- 例外:
CIFSException
-
dispose
public void dispose() throws SmbException
- 定義:
dispose
インタフェース内SSPContext
- 例外:
SmbException
- 関連項目:
SSPContext.dispose()
-
-