Groovy Documentation

domain
Class AuthenticationData

java.lang.Object
  domain.AuthenticationData

class AuthenticationData

Representation for authentication data used to authenticate to a subversion repository.


Property Summary
boolean checkServerCertificates

Should we verify server certificates for HTTPS connections?

String clientCertificateFile

Absolute path to a file containing the certificate in PKCS#12 format.

String clientCertificatePassword

Password for the certificate.

static def constraints

String description

Description of this authentication token.

boolean forceAuthentication

Should we offer to authenticate even if the server does not challenge for authentication (generally only relevant for HTTP or HTTPS connections).

String name

Human-readable name for this authentication token.

String password

The password.

int portNumber

Port number on which to make SSH connections.

String privateKeyFile

Absolute path to a file containing the private key.

String privateKeyPassphrase

Passphrase for the private key file.

static long serialVersionUID

Serialization UID.

String username

The user name.

 
Constructor Summary
AuthenticationData()

 
Method Summary
String determineUsername(def url)

Determine the user name to use for a given subversion URL.

org.tmatesoft.svn.core.auth.SVNAuthentication toSVNAuthentication(def kind, def url)

Provide an SVNKit authentication object of the correct kind from the data given in this AuthenticationData object.

String toString()

 
Methods inherited from class Object
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll
 

Property Detail

checkServerCertificates

boolean checkServerCertificates
Should we verify server certificates for HTTPS connections? If true, the default trust manager based on the configuration given in ~/.subversion/servers is used. If false, a dummy trust manager that trusts all certificates is used instead.


clientCertificateFile

String clientCertificateFile
Absolute path to a file containing the certificate in PKCS#12 format.


clientCertificatePassword

String clientCertificatePassword
Password for the certificate.


constraints

static def constraints


description

String description
Description of this authentication token.


forceAuthentication

boolean forceAuthentication
Should we offer to authenticate even if the server does not challenge for authentication (generally only relevant for HTTP or HTTPS connections).


name

String name
Human-readable name for this authentication token.


password

String password
The password. May be blank if this token doesn't do password-based authentication.


portNumber

int portNumber
Port number on which to make SSH connections.


privateKeyFile

String privateKeyFile
Absolute path to a file containing the private key. May be blank if this token doesn't do SSH key authentication.


privateKeyPassphrase

String privateKeyPassphrase
Passphrase for the private key file. May be blank if the key is not passphrase protected.


serialVersionUID

static final long serialVersionUID
Serialization UID.


username

String username
The user name. May be blank, in which case the currently logged-in username or the username from the repository URL will be used.


 
Constructor Detail

AuthenticationData

AuthenticationData()


 
Method Detail

determineUsername

public String determineUsername(def url)
Determine the user name to use for a given subversion URL. This is the first of the following options that is Groovy-true (i.e. non-null and non-empty):
  1. The username property of this object
  2. The username extracted from the URL (e.g. svn+ssh://user@host/...)
  3. The currently logged-in user name
  4. The name property of this object


toSVNAuthentication

public org.tmatesoft.svn.core.auth.SVNAuthentication toSVNAuthentication(def kind, def url)
Provide an SVNKit authentication object of the correct kind from the data given in this AuthenticationData object. If this object cannot provide an authentication object of the required kind then the method returns null.


toString

public String toString()


 

Groovy Documentation