Package jcifs.smb1.smb1
Class SmbSession
- java.lang.Object
-
- jcifs.smb1.smb1.SmbSession
-
public final class SmbSession extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.String
toString()
-
-
-
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.smb1.smb1.client.logonShare property.
- Throws:
SmbException
-
logon
public static void logon(UniAddress dc, int port, NtlmPasswordAuthentication auth) throws SmbException
- Throws:
SmbException
-
-