jcifs.smb
Class SmbSession
java.lang.Object
jcifs.smb.SmbSession
public final class SmbSession
- extends Object
getChallengeForDomain
public static NtlmChallenge getChallengeForDomain()
throws SmbException,
UnknownHostException
- Throws:
SmbException
UnknownHostException
getChallenge
public static byte[] getChallenge(UniAddress dc)
throws SmbException,
UnknownHostException
- Throws:
SmbException
UnknownHostException
getChallenge
public static byte[] getChallenge(UniAddress dc,
int port)
throws SmbException,
UnknownHostException
- Throws:
SmbException
UnknownHostException
logon
public static void logon(UniAddress dc,
NtlmPasswordAuthentication auth)
throws SmbException
- Authenticate arbitrary credentials represented by the
NtlmPasswordAuthentication object against the domain controller
specified by the UniAddress parameter. If the credentials are
not accepted, an SmbAuthException will be thrown. If an error
occurs an SmbException will be thrown. If the credentials are
valid, the method will return without throwing an exception. See the
last FAQ question.
See also the jcifs.smb.client.logonShare property.
- Throws:
SmbException
logon
public static void logon(UniAddress dc,
int port,
NtlmPasswordAuthentication auth)
throws SmbException
- Throws:
SmbException
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2012. All Rights Reserved.