Class 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
    Author:
    TMate Software Ltd.
    • Constructor Detail

      • SVNSSLAuthentication

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

        public SVNSSLAuthentication​(java.io.File certFile,
                                    java.lang.String password,
                                    boolean storageAllowed,
                                    SVNURL url,
                                    boolean isPartial)
        Deprecated.
        Use method
    • Method Detail

      • newInstance

        public static SVNSSLAuthentication newInstance​(java.io.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​(java.lang.String kind,
                                                       java.lang.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 java.lang.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 java.io.File getCertificateFile()
        Returns a user's certificate file.
        Returns:
        certificate file
      • getSSLKind

        public java.lang.String getSSLKind()
      • getAlias

        public java.lang.String getAlias()
        Only used for MSCAPI
      • getCertificatePath

        public java.lang.String getCertificatePath()
      • setCertificatePath

        public void setCertificatePath​(java.lang.String path)
      • isCertificatePath

        public static boolean isCertificatePath​(java.lang.String path)