Class BasicAuthenticationManager

  • All Implemented Interfaces:
    ISVNAuthenticationManager, ISVNProxyManager, ISVNProxyManagerEx, ISVNSSHHostVerifier

    public class BasicAuthenticationManager
    extends java.lang.Object
    implements ISVNAuthenticationManager, ISVNProxyManagerEx, ISVNSSHHostVerifier
    The BasicAuthenticationManager is a simple implementation of ISVNAuthenticationManager for storing and providing credentials without using auth providers. A basic manager simply keeps the user credentials provided. Also this manager may store a single proxy server options context (for HHTP requests to go through a particular proxy server).

    This manager does not use authentication providers (ISVNAuthenticationProvider) but only those credentials that was supplied to its constructor. Also this manager never caches credentials.

    This manager is not used in SVNKit internals. You may use a default manager (how to get it read javadoc for ISVNAuthenticationManager), this basic manager or implement your own one.

    Since:
    1.2
    Version:
    1.3
    Author:
    TMate Software Ltd.
    See Also:
    ISVNAuthenticationProvider
    • Constructor Detail

      • BasicAuthenticationManager

        public BasicAuthenticationManager​(java.lang.String userName,
                                          java.lang.String password)
        Deprecated.
        Creates an auth manager given a user credential - a username and password.
        Parameters:
        userName - a username
        password - a password
      • BasicAuthenticationManager

        public BasicAuthenticationManager​(java.lang.String userName,
                                          java.io.File keyFile,
                                          java.lang.String passphrase,
                                          int portNumber)
        Creates an auth manager given a user credential - a username and an ssh private key.
        Parameters:
        userName - a username
        keyFile - a private key file
        passphrase - a password to the private key
        portNumber - a port number over which an ssh tunnel is established
      • BasicAuthenticationManager

        public BasicAuthenticationManager​(SVNAuthentication[] authentications)
        Creates an auth manager given user credentials to use.
        Parameters:
        authentications - user credentials