パッケージ jcifs.smb
クラス NtlmAuthenticator
- java.lang.Object
-
- jcifs.smb.NtlmAuthenticator
-
public abstract class NtlmAuthenticator extends Object
This class can be extended by applications that wish to trap authentication related exceptions and automatically retry the exceptional operation with different credentials. Read jCIFS Exceptions and NtlmAuthenticator for complete details.
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 NtlmAuthenticator()
-
メソッドの概要
すべてのメソッド staticメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 static NtlmAuthenticator
getDefault()
protected NtlmPasswordAuthenticator
getNtlmPasswordAuthentication()
An application extending this class must provide an implementation for this method that returns new user credentials try try when accessing SMB resources described by the getRequestingURL and getRequestingException methods.protected SmbAuthException
getRequestingException()
protected String
getRequestingURL()
static NtlmPasswordAuthenticator
requestNtlmPasswordAuthentication(String url, SmbAuthException sae)
Used internally by jCIFS when an SmbAuthException is trapped to retrieve new user credentials.static NtlmPasswordAuthenticator
requestNtlmPasswordAuthentication(NtlmAuthenticator a, String url, SmbAuthException sae)
static void
setDefault(NtlmAuthenticator a)
Set the default NtlmAuthenticator.
-
-
-
メソッドの詳細
-
setDefault
public static void setDefault(NtlmAuthenticator a)
Set the default NtlmAuthenticator. Once the default authenticator is set it cannot be changed. Calling this metho again will have no effect.- パラメータ:
a
-
-
getDefault
public static NtlmAuthenticator getDefault()
- 戻り値:
- the default authentiucation credentials
-
getRequestingURL
protected final String getRequestingURL()
-
getRequestingException
protected final SmbAuthException getRequestingException()
-
requestNtlmPasswordAuthentication
public static NtlmPasswordAuthenticator requestNtlmPasswordAuthentication(String url, SmbAuthException sae)
Used internally by jCIFS when an SmbAuthException is trapped to retrieve new user credentials.- パラメータ:
url
-sae
-- 戻り値:
- credentials returned by prompt
-
requestNtlmPasswordAuthentication
public static NtlmPasswordAuthenticator requestNtlmPasswordAuthentication(NtlmAuthenticator a, String url, SmbAuthException sae)
- パラメータ:
a
-url
-sae
-- 戻り値:
- credentials returned by prompt
-
getNtlmPasswordAuthentication
protected NtlmPasswordAuthenticator getNtlmPasswordAuthentication()
An application extending this class must provide an implementation for this method that returns new user credentials try try when accessing SMB resources described by the getRequestingURL and getRequestingException methods. If this method returns null the SmbAuthException that triggered the authenticator check will simply be rethrown. The default implementation returns null.
-
-