C# Class SharpCifs.Smb.NtlmAuthenticator

This class can be extended by applications that wish to trap authentication related exceptions and automatically retry the exceptional operation with different credentials.
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.
Afficher le fichier Open project: brandonprry/Potato

Méthodes publiques

Méthode Description
RequestNtlmPasswordAuthentication ( string url, SmbAuthException sae ) : NtlmPasswordAuthentication

Used internally by jCIFS when an SmbAuthException is trapped to retrieve new user credentials.

Used internally by jCIFS when an SmbAuthException is trapped to retrieve new user credentials.

SetDefault ( NtlmAuthenticator a ) : void

Set the default NtlmAuthenticator.

Set the default NtlmAuthenticator. Once the default authenticator is set it cannot be changed. Calling this metho again will have no effect.

Méthodes protégées

Méthode Description
GetNtlmPasswordAuthentication ( ) : NtlmPasswordAuthentication

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.

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.

GetRequestingException ( ) : SmbAuthException
GetRequestingUrl ( ) : string

Private Methods

Méthode Description
Reset ( ) : void

Method Details

GetNtlmPasswordAuthentication() protected méthode

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.
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.
protected GetNtlmPasswordAuthentication ( ) : NtlmPasswordAuthentication
Résultat NtlmPasswordAuthentication

GetRequestingException() protected méthode

protected GetRequestingException ( ) : SmbAuthException
Résultat SmbAuthException

GetRequestingUrl() protected méthode

protected GetRequestingUrl ( ) : string
Résultat string

RequestNtlmPasswordAuthentication() public static méthode

Used internally by jCIFS when an SmbAuthException is trapped to retrieve new user credentials.
Used internally by jCIFS when an SmbAuthException is trapped to retrieve new user credentials.
public static RequestNtlmPasswordAuthentication ( string url, SmbAuthException sae ) : NtlmPasswordAuthentication
url string
sae SmbAuthException
Résultat NtlmPasswordAuthentication

SetDefault() public static méthode

Set the default NtlmAuthenticator.
Set the default NtlmAuthenticator. Once the default authenticator is set it cannot be changed. Calling this metho again will have no effect.
public static SetDefault ( NtlmAuthenticator a ) : void
a NtlmAuthenticator
Résultat void