| org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider
All known Subclasses: org.tmatesoft.svn.cli.SVNConsoleAuthenticationProvider, org.tmatesoft.svn.core.javahl.JavaHLAuthenticationProvider,
ISVNAuthenticationProvider | public interface ISVNAuthenticationProvider (Code) | | The ISVNAuthenticationProvider interface is implemented by user
credentials providers. Such a provider is set to an authentication manager
calling
ISVNAuthenticationManager.setAuthenticationProvider(ISVNAuthenticationProvider) setAuthenticationProvider() .
When a repository server pulls user's credentials, an SVNRepository driver
asks the registered ISVNAuthenticationManager for credentials. The auth manager in its turn
will ask the registered auth provider for credentials.
ISVNAuthenticationProvider may be implemented to keep a list of credentials, for example, there is
such a default SVNKit implementation (that comes along with a default implementation of
ISVNAuthenticationManager - org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager),
that saves credentials in and retrieves them from the in-memory cache only during runtime (not on the disk);
or the default one that uses the auth area cache (read the Subversion book chapter).
version: 1.1.1 author: TMate Software Ltd. See Also: ISVNAuthenticationManager See Also: org.tmatesoft.svn.core.io.SVNRepository |
Field Summary | |
public int | ACCEPTED Denotes that a user credential is accepted by a server and will be
cached on the disk. | public int | ACCEPTED_TEMPORARY Denotes that a user credential is accepted by a server and will be
cached only during runtime, not on the disk. | public int | REJECTED Denotes that a user credential is rejected by a server. |
ACCEPTED | public int ACCEPTED(Code) | | Denotes that a user credential is accepted by a server and will be
cached on the disk.
|
ACCEPTED_TEMPORARY | public int ACCEPTED_TEMPORARY(Code) | | Denotes that a user credential is accepted by a server and will be
cached only during runtime, not on the disk.
|
REJECTED | public int REJECTED(Code) | | Denotes that a user credential is rejected by a server.
|
requestClientAuthentication | public SVNAuthentication requestClientAuthentication(String kind, SVNURL url, String realm, SVNErrorMessage errorMessage, SVNAuthentication previousAuth, boolean authMayBeStored)(Code) | | Returns a next user credential of the specified kind for the given
authentication realm.
If this provider has got more than one credentials (say, a list of credentials),
to get the first one of them previousAuth is set to
null.
Parameters: kind - a credential kind (for example, like those defined in ISVNAuthenticationManager) Parameters: url - a repository location that is to be accessed Parameters: realm - a repository authentication realm (host, port, realm string) Parameters: errorMessage - the recent authentication failure error message Parameters: previousAuth - the credential that was previously retrieved (to tell if it's not accepted) Parameters: authMayBeStored - if true then the returned credential can be cached, otherwise it won't be cached anyway a next user credential |
|
|