public class NtlmContext extends Object implements SSPContext
| Modifier and Type | Field and Description |
|---|---|
static org.bouncycastle.asn1.ASN1ObjectIdentifier |
NTLMSSP_OID |
| Constructor and Description |
|---|
NtlmContext(CIFSContext tc,
NtlmPasswordAuthenticator auth,
boolean doSigning) |
| Modifier and Type | Method and Description |
|---|---|
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) |
boolean |
isEstablished() |
boolean |
isMICAvailable() |
boolean |
isPreferredMech(org.bouncycastle.asn1.ASN1ObjectIdentifier mechanism) |
boolean |
isSupported(org.bouncycastle.asn1.ASN1ObjectIdentifier mechanism) |
void |
setTargetName(String targetName) |
boolean |
supportsIntegrity() |
String |
toString() |
void |
verifyMIC(byte[] data,
byte[] mic) |
public NtlmContext(CIFSContext tc, NtlmPasswordAuthenticator auth, boolean doSigning)
tc - context to useauth - credentialsdoSigning - whether signing is requestedpublic org.bouncycastle.asn1.ASN1ObjectIdentifier[] getSupportedMechs()
getSupportedMechs in interface SSPContextSSPContext.getSupportedMechs()public int getFlags()
getFlags in interface SSPContextSSPContext.getFlags()public boolean isSupported(org.bouncycastle.asn1.ASN1ObjectIdentifier mechanism)
isSupported in interface SSPContextSSPContext.isSupported(org.bouncycastle.asn1.ASN1ObjectIdentifier)public boolean isPreferredMech(org.bouncycastle.asn1.ASN1ObjectIdentifier mechanism)
isPreferredMech in interface SSPContextSSPContext.isPreferredMech(org.bouncycastle.asn1.ASN1ObjectIdentifier)public boolean isEstablished()
isEstablished in interface SSPContextpublic byte[] getServerChallenge()
public byte[] getSigningKey()
getSigningKey in interface SSPContextpublic String getNetbiosName()
getNetbiosName in interface SSPContextpublic void setTargetName(String targetName)
targetName - the target's SPNpublic byte[] initSecContext(byte[] token,
int offset,
int len)
throws SmbException
initSecContext in interface SSPContextSmbExceptionpublic boolean supportsIntegrity()
supportsIntegrity in interface SSPContextpublic boolean isMICAvailable()
isMICAvailable in interface SSPContextpublic byte[] calculateMIC(byte[] data)
throws CIFSException
calculateMIC in interface SSPContextCIFSExceptionpublic void verifyMIC(byte[] data,
byte[] mic)
throws CIFSException
verifyMIC in interface SSPContextCIFSExceptionpublic void dispose()
throws SmbException
dispose in interface SSPContextSmbExceptionSSPContext.dispose()Copyright © 2023. All rights reserved.