Package jcifs.smb
Interface SSPContext
-
- All Known Implementing Classes:
NtlmContext
public interface SSPContext- Author:
- mbechler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]calculateMIC(byte[] data)voiddispose()intgetFlags()StringgetNetbiosName()byte[]getSigningKey()org.bouncycastle.asn1.ASN1ObjectIdentifier[]getSupportedMechs()byte[]initSecContext(byte[] token, int off, int len)booleanisEstablished()booleanisMICAvailable()booleanisPreferredMech(org.bouncycastle.asn1.ASN1ObjectIdentifier selectedMech)booleanisSupported(org.bouncycastle.asn1.ASN1ObjectIdentifier mechanism)booleansupportsIntegrity()voidverifyMIC(byte[] data, byte[] mic)
-
-
-
Method Detail
-
getSigningKey
byte[] getSigningKey() throws CIFSException- Returns:
- the signing key for the session
- Throws:
CIFSException
-
isEstablished
boolean isEstablished()
- Returns:
- whether the context is established
-
initSecContext
byte[] initSecContext(byte[] token, int off, int len) throws CIFSException- Parameters:
token-off-len-- Returns:
- result token
- Throws:
SmbExceptionCIFSException
-
getNetbiosName
String getNetbiosName()
- Returns:
- the name of the remote endpoint
-
dispose
void dispose() throws CIFSException- Throws:
CIFSException
-
isSupported
boolean isSupported(org.bouncycastle.asn1.ASN1ObjectIdentifier mechanism)
- Parameters:
mechanism-- Returns:
- whether the specified mechanism is supported
-
isPreferredMech
boolean isPreferredMech(org.bouncycastle.asn1.ASN1ObjectIdentifier selectedMech)
- Parameters:
selectedMech-- Returns:
- whether the specified mechanism is preferred
-
getFlags
int getFlags()
- Returns:
- context flags
-
getSupportedMechs
org.bouncycastle.asn1.ASN1ObjectIdentifier[] getSupportedMechs()
- Returns:
- array of supported mechanism OIDs
-
supportsIntegrity
boolean supportsIntegrity()
- Returns:
- whether this mechanisms supports integrity
-
calculateMIC
byte[] calculateMIC(byte[] data) throws CIFSException- Parameters:
data-- Returns:
- MIC
- Throws:
CIFSException
-
verifyMIC
void verifyMIC(byte[] data, byte[] mic) throws CIFSException- Parameters:
data-mic-- Throws:
CIFSException
-
isMICAvailable
boolean isMICAvailable()
- Returns:
- whether MIC can be used
-
-