パッケージ 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.ASN1ObjectIdentifierNTLMSSP_OID
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 NtlmContext(CIFSContext tc, NtlmPasswordAuthenticator auth, boolean doSigning)
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 byte[]calculateMIC(byte[] data)protected Type3MessagecreateType3Message(Type2Message msg2)voiddispose()intgetFlags()StringgetNetbiosName()byte[]getServerChallenge()byte[]getSigningKey()org.bouncycastle.asn1.ASN1ObjectIdentifier[]getSupportedMechs()byte[]initSecContext(byte[] token, int offset, int len)protected voidinitSessionSecurity(byte[] mk)booleanisEstablished()booleanisMICAvailable()booleanisPreferredMech(org.bouncycastle.asn1.ASN1ObjectIdentifier mechanism)booleanisSupported(org.bouncycastle.asn1.ASN1ObjectIdentifier mechanism)protected byte[]makeAuthenticate(byte[] token)protected byte[]makeNegotiate(byte[] token)voidsetTargetName(String targetName)booleansupportsIntegrity()StringtoString()voidverifyMIC(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
-
createType3Message
protected Type3Message createType3Message(Type2Message msg2) throws GeneralSecurityException, CIFSException
- パラメータ:
msg2-- 戻り値:
- 例外:
GeneralSecurityExceptionCIFSException
-
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()
-
-