パッケージ jcifs.smb1.smb1
クラス SmbSession
- java.lang.Object
-
- jcifs.smb1.smb1.SmbSession
-
public final class SmbSession extends Object
-
-
メソッドの概要
すべてのメソッド staticメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 static byte[]getChallenge(UniAddress dc)static byte[]getChallenge(UniAddress dc, int port)static NtlmChallengegetChallengeForDomain()static voidlogon(UniAddress dc, int port, NtlmPasswordAuthentication auth)static voidlogon(UniAddress dc, NtlmPasswordAuthentication auth)Authenticate arbitrary credentials represented by the NtlmPasswordAuthentication object against the domain controller specified by the UniAddress parameter.StringtoString()
-
-
-
メソッドの詳細
-
getChallengeForDomain
public static NtlmChallenge getChallengeForDomain() throws SmbException, UnknownHostException
-
getChallenge
public static byte[] getChallenge(UniAddress dc) throws SmbException, UnknownHostException
-
getChallenge
public static byte[] getChallenge(UniAddress dc, int port) 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.
- 例外:
SmbException
-
logon
public static void logon(UniAddress dc, int port, NtlmPasswordAuthentication auth) throws SmbException
- 例外:
SmbException
-
-