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
SmbExceptionjava.net.UnknownHostExceptionpublic static byte[] getChallenge(UniAddress dc) throws SmbException, java.net.UnknownHostException
SmbExceptionjava.net.UnknownHostExceptionpublic static byte[] getChallenge(UniAddress dc, int port) throws SmbException, java.net.UnknownHostException
SmbExceptionjava.net.UnknownHostExceptionpublic static void logon(UniAddress dc, NtlmPasswordAuthentication auth) throws SmbException
See also the jcifs.smb.client.logonShare property.
SmbExceptionpublic static void logon(UniAddress dc, int port, NtlmPasswordAuthentication auth) throws SmbException
SmbExceptionpublic java.lang.String toString()
toString in class java.lang.Object