jcifs.smb
Class SmbSession

java.lang.Object
  extended by jcifs.smb.SmbSession

public final class SmbSession
extends Object


Method Summary
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.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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.