hudson.scm.credential
Class SVNSSLAuthentication

java.lang.Object
  extended by org.tmatesoft.svn.core.auth.SVNAuthentication
      extended by org.tmatesoft.svn.core.auth.SVNSSLAuthentication
          extended by hudson.scm.credential.SVNSSLAuthentication

public class SVNSSLAuthentication
extends org.tmatesoft.svn.core.auth.SVNSSLAuthentication

Author:
Steven Christou

Field Summary
static String MSCAPI
           
static String SSL
           
 
Constructor Summary
SVNSSLAuthentication(byte[] certFile, String password, boolean storageAllowed)
           
SVNSSLAuthentication(byte[] certFile, String password, boolean storageAllowed, org.tmatesoft.svn.core.SVNURL url, boolean isPartial)
          Creates an SSL credentials object.
SVNSSLAuthentication(File certFile, String password, boolean storageAllowed)
          Creates an SSL credentials object.
SVNSSLAuthentication(String sslKind, String alias, boolean storageAllowed)
           
 
Method Summary
static String formatCertificatePath(String path)
           
 String getAlias()
          Only used for MSCAPI
 byte[] getByteCertificateFile()
          Returns a user's certificate file.
 String getCertificatePath()
           
 String getPassword()
          Return a user's password.
 String getSSLKind()
          Returns the SSL kind.
static boolean isCertificatePath(String path)
           
 void setCertificatePath(String path)
           
 
Methods inherited from class org.tmatesoft.svn.core.auth.SVNSSLAuthentication
getCertificateFile
 
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)
                     throws IOException
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
Throws:
IOException

SVNSSLAuthentication

public SVNSSLAuthentication(byte[] certFile,
                            String password,
                            boolean storageAllowed)

SVNSSLAuthentication

public SVNSSLAuthentication(byte[] certFile,
                            String password,
                            boolean storageAllowed,
                            org.tmatesoft.svn.core.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)
                     throws IOException
Throws:
IOException
Method Detail

getPassword

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

Overrides:
getPassword in class org.tmatesoft.svn.core.auth.SVNSSLAuthentication
Returns:
a password

getByteCertificateFile

public byte[] getByteCertificateFile()
Returns a user's certificate file.

Returns:
certificate file

getSSLKind

public String getSSLKind()
Returns the SSL kind.

Overrides:
getSSLKind in class org.tmatesoft.svn.core.auth.SVNSSLAuthentication
Returns:
SLLKind

getAlias

public String getAlias()
Only used for MSCAPI

Overrides:
getAlias in class org.tmatesoft.svn.core.auth.SVNSSLAuthentication

getCertificatePath

public String getCertificatePath()
Overrides:
getCertificatePath in class org.tmatesoft.svn.core.auth.SVNSSLAuthentication

setCertificatePath

public void setCertificatePath(String path)
Overrides:
setCertificatePath in class org.tmatesoft.svn.core.auth.SVNSSLAuthentication

isCertificatePath

public static boolean isCertificatePath(String path)

formatCertificatePath

public static String formatCertificatePath(String path)


Copyright © 2004-2013 Hudson. All Rights Reserved.