jcifs.smb
Class SmbSession
java.lang.Object
|
+--jcifs.smb.SmbSession
- public final class SmbSession
- extends java.lang.Object
The class represents a user's session established with an SMB/CIFS
server. This class is used internally to the jCIFS library however
applications may wish to authenticate aribrary user credentials
with the logon method. It is noteworthy that jCIFS does not
support DCE/RPC at this time and therefore does not use the NETLOGON
procedure. Instead, it simply performs a "tree connect" to IPC$ using
the supplied credentials. This is only a subset of the NETLOGON procedure
but is achives the same effect.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
getChallenge
public static byte[] getChallenge(UniAddress dc)
throws SmbException,
java.net.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.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object