SVNKit Home

org.tmatesoft.svn.core.auth
Class SVNSSLAuthentication

java.lang.Object
  extended by org.tmatesoft.svn.core.auth.SVNAuthentication
      extended by 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
Author:
TMate Software Ltd.

Field Summary
static String MSCAPI
           
static String SSL
           
 
Constructor Summary
SVNSSLAuthentication(File certFile, String password, boolean storageAllowed)
          Creates an SSL credentials object.
SVNSSLAuthentication(File certFile, String password, boolean storageAllowed, SVNURL url, boolean isPartial)
          Creates an SSL credentials object.
SVNSSLAuthentication(String sslKind, String alias, boolean storageAllowed, SVNURL url, boolean isPartial)
           
 
Method Summary
static String formatCertificatePath(String path)
           
 String getAlias()
          Only used for MSCAPI
 File getCertificateFile()
          Returns a user's certificate file.
 String getCertificatePath()
           
 String getPassword()
          Return a user's password.
 String getSSLKind()
           
static boolean isCertificatePath(String path)
           
 void setCertificatePath(String path)
           
 
Methods inherited from class org.tmatesoft.svn.core.auth.SVNAuthentication
getKind, getURL, getUserName, isPartial, isStorageAllowed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MSCAPI

public static final String MSCAPI
See Also:
Constant Field Values

SSL

public static final String SSL
See Also:
Constant Field Values
Constructor Detail

SVNSSLAuthentication

public SVNSSLAuthentication(File certFile,
                            String password,
                            boolean storageAllowed)
Creates an SSL credentials object.

Parameters:
certFile - user's certificate file
password - user's password
storageAllowed - to store or not this credential in a credentials cache

SVNSSLAuthentication

public SVNSSLAuthentication(File certFile,
                            String password,
                            boolean storageAllowed,
                            SVNURL url,
                            boolean isPartial)
Creates an SSL credentials object.

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
Since:
1.3.1

SVNSSLAuthentication

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

getPassword

public String getPassword()
Return a user's password.

Returns:
a password

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)

formatCertificatePath

public static String formatCertificatePath(String path)

SVNKit Home

Copyright © 2004-2011 TMate Software Ltd. All Rights Reserved.