Class SVNSSLAuthentication

java.lang.Object
org.tmatesoft.svn.core.auth.SVNAuthentication
org.tmatesoft.svn.core.auth.SVNSSLAuthentication

public class SVNSSLAuthentication extends SVNAuthentication
The SVNSSLAuthentication class represents user's credentials used to authenticate a user in secure connections. Used along with the SSL credential kind.
Since:
1.2
Version:
1.3
  • Field Details

    • MSCAPI

      public static final String MSCAPI
      See Also:
    • SSL

      public static final String SSL
      See Also:
    • myCertificate

      private File myCertificate
    • myPassword

      private char[] myPassword
    • mySSLKind

      private String mySSLKind
    • myAlias

      private String myAlias
    • myCertificatePath

      private String myCertificatePath
    • myCertificateData

      private byte[] myCertificateData
  • Constructor Details

    • SVNSSLAuthentication

      public SVNSSLAuthentication(File certFile, String password, boolean storageAllowed)
      Deprecated.
      Use method
    • SVNSSLAuthentication

      public SVNSSLAuthentication(File certFile, String password, boolean storageAllowed, SVNURL url, boolean isPartial)
      Deprecated.
      Use method
    • SVNSSLAuthentication

      public SVNSSLAuthentication(String sslKind, String alias, boolean storageAllowed, SVNURL url, boolean isPartial)
    • SVNSSLAuthentication

      private SVNSSLAuthentication(String sslKind, String alias, File certFile, char[] password, boolean storageAllowed, SVNURL url, boolean isPartial)
    • SVNSSLAuthentication

      private SVNSSLAuthentication(String sslKind, String alias, byte[] cert, char[] password, boolean storageAllowed, SVNURL url, boolean isPartial)
  • Method Details

    • newInstance

      public static SVNSSLAuthentication newInstance(File certFile, char[] password, boolean storageAllowed, SVNURL url, boolean isPartial)
      Parameters:
      certFile - user's certificate file
      password - user's password
      storageAllowed - to store or not this credential in a credentials cache
      url - url these credentials are applied to
      isPartial -
      Returns:
      authentication object
    • newInstance

      public static SVNSSLAuthentication newInstance(byte[] cert, char[] password, boolean storageAllowed, SVNURL url, boolean isPartial)
      Parameters:
      cert - user's certificate
      password - user's password
      storageAllowed - to store or not this credential in a credentials cache
      url - url these credentials are applied to
      isPartial -
      Returns:
      authentication object
    • newInstance

      public static SVNSSLAuthentication newInstance(String kind, String alias, boolean storageAllowed, SVNURL url, boolean isPartial)
      Parameters:
      kind - authentication kind (MSCAPI or SSL
      alias - alias
      storageAllowed - to store or not this credential in a credentials cache
      url - url these credentials are applied to
      isPartial -
      Returns:
      authentication object
    • getPassword

      public String getPassword()
      Deprecated.
      Returns password.
      Returns:
      password
    • getCertificate

      public byte[] getCertificate()
      Returns certificate raw data
      Returns:
      certificate data
    • getPasswordValue

      public char[] getPasswordValue()
      Returns password.
      Returns:
      password
      Since:
      1.8.9
    • getCertificateFile

      public File getCertificateFile()
      Returns a user's certificate file.
      Returns:
      certificate file
    • getSSLKind

      public String getSSLKind()
    • getAlias

      public String getAlias()
      Only used for MSCAPI
    • getCertificatePath

      public String getCertificatePath()
    • setCertificatePath

      public void setCertificatePath(String path)
    • isCertificatePath

      public static boolean isCertificatePath(String path)
    • dismissSensitiveData

      public void dismissSensitiveData()
      Description copied from class: SVNAuthentication
      Disposes sensitive data (e.g. password) stored in this object.
      Overrides:
      dismissSensitiveData in class SVNAuthentication
    • copy

      public SVNAuthentication copy()
      Description copied from class: SVNAuthentication
      Creates a deep copy of this credentials object. Sensitive data (e.g. password) is copied too.
      Overrides:
      copy in class SVNAuthentication
      Returns:
      copy of this object.