Class BasicAuthenticationManager

java.lang.Object
org.tmatesoft.svn.core.auth.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
See Also:
  • Field Details

    • myPasswordAuthentications

      private java.util.List<SVNAuthentication> myPasswordAuthentications
    • mySSHAuthentications

      private java.util.List<SVNAuthentication> mySSHAuthentications
    • myUserNameAuthentications

      private java.util.List<SVNAuthentication> myUserNameAuthentications
    • mySSLAuthentications

      private java.util.List<SVNAuthentication> mySSLAuthentications
    • mySSHIndex

      private int mySSHIndex
    • myPasswordIndex

      private int myPasswordIndex
    • myUserNameIndex

      private int myUserNameIndex
    • mySSLIndex

      private int mySSLIndex
    • myProxyHost

      private java.lang.String myProxyHost
    • myProxyPort

      private int myProxyPort
    • myProxyUserName

      private java.lang.String myProxyUserName
    • myProxyPassword

      private char[] myProxyPassword
    • myIsAuthenticationForced

      private boolean myIsAuthenticationForced
  • Constructor Details

    • 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
  • Method Details