public final class SmbSession
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
getChallenge(UniAddress dc) |
static byte[] |
getChallenge(UniAddress dc,
int port) |
static NtlmChallenge |
getChallengeForDomain() |
static void |
logon(UniAddress dc,
int port,
NtlmPasswordAuthentication auth) |
static void |
logon(UniAddress dc,
NtlmPasswordAuthentication auth)
Authenticate arbitrary credentials represented by the
NtlmPasswordAuthentication object against the domain controller
specified by the UniAddress parameter.
|
java.lang.String |
toString() |
public static NtlmChallenge getChallengeForDomain() throws SmbException, java.net.UnknownHostException
SmbException
java.net.UnknownHostException
public static byte[] getChallenge(UniAddress dc) throws SmbException, java.net.UnknownHostException
SmbException
java.net.UnknownHostException
public static byte[] getChallenge(UniAddress dc, int port) throws SmbException, java.net.UnknownHostException
SmbException
java.net.UnknownHostException
public static void logon(UniAddress dc, NtlmPasswordAuthentication auth) throws SmbException
SmbException
public static void logon(UniAddress dc, int port, NtlmPasswordAuthentication auth) throws SmbException
SmbException
public java.lang.String toString()
toString
in class java.lang.Object