Methods Summary |
---|
protected NtlmPasswordAuthentication | 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.
return null;
|
protected final SmbAuthException | getRequestingException()
return sae;
|
protected final java.lang.String | getRequestingURL()
return url;
|
public static NtlmPasswordAuthentication | requestNtlmPasswordAuthentication(java.lang.String url, SmbAuthException sae)Used internally by jCIFS when an SmbAuthException is trapped to retrieve new user credentials.
if( auth == null ) {
return null;
}
synchronized( auth ) {
auth.url = url;
auth.sae = sae;
return auth.getNtlmPasswordAuthentication();
}
|
private void | reset()
url = null;
sae = null;
|
public static synchronized void | setDefault(jcifs.smb.NtlmAuthenticator a)Set the default NtlmAuthenticator. Once the default authenticator is set it cannot be changed. Calling this metho again will have no effect.
if( auth != null ) {
return;
}
auth = a;
|