パッケージ jcifs.smb
インタフェース SSPContext
-
- 既知の実装クラスのリスト:
NtlmContext
public interface SSPContext
- 作成者:
- mbechler
-
-
メソッドの概要
すべてのメソッド インスタンス・メソッド abstractメソッド 修飾子とタイプ メソッド 説明 byte[]
calculateMIC(byte[] data)
void
dispose()
int
getFlags()
String
getNetbiosName()
byte[]
getSigningKey()
org.bouncycastle.asn1.ASN1ObjectIdentifier[]
getSupportedMechs()
byte[]
initSecContext(byte[] token, int off, int len)
boolean
isEstablished()
boolean
isMICAvailable()
boolean
isPreferredMech(org.bouncycastle.asn1.ASN1ObjectIdentifier selectedMech)
boolean
isSupported(org.bouncycastle.asn1.ASN1ObjectIdentifier mechanism)
boolean
supportsIntegrity()
void
verifyMIC(byte[] data, byte[] mic)
-
-
-
メソッドの詳細
-
getSigningKey
byte[] getSigningKey() throws CIFSException
- 戻り値:
- the signing key for the session
- 例外:
CIFSException
-
isEstablished
boolean isEstablished()
- 戻り値:
- whether the context is established
-
initSecContext
byte[] initSecContext(byte[] token, int off, int len) throws CIFSException
- パラメータ:
token
-off
-len
-- 戻り値:
- result token
- 例外:
SmbException
CIFSException
-
getNetbiosName
String getNetbiosName()
- 戻り値:
- the name of the remote endpoint
-
dispose
void dispose() throws CIFSException
- 例外:
CIFSException
-
isSupported
boolean isSupported(org.bouncycastle.asn1.ASN1ObjectIdentifier mechanism)
- パラメータ:
mechanism
-- 戻り値:
- whether the specified mechanism is supported
-
isPreferredMech
boolean isPreferredMech(org.bouncycastle.asn1.ASN1ObjectIdentifier selectedMech)
- パラメータ:
selectedMech
-- 戻り値:
- whether the specified mechanism is preferred
-
getFlags
int getFlags()
- 戻り値:
- context flags
-
getSupportedMechs
org.bouncycastle.asn1.ASN1ObjectIdentifier[] getSupportedMechs()
- 戻り値:
- array of supported mechanism OIDs
-
supportsIntegrity
boolean supportsIntegrity()
- 戻り値:
- whether this mechanisms supports integrity
-
calculateMIC
byte[] calculateMIC(byte[] data) throws CIFSException
- パラメータ:
data
-- 戻り値:
- MIC
- 例外:
CIFSException
-
verifyMIC
void verifyMIC(byte[] data, byte[] mic) throws CIFSException
- パラメータ:
data
-mic
-- 例外:
CIFSException
-
isMICAvailable
boolean isMICAvailable()
- 戻り値:
- whether MIC can be used
-
-