public class SVNSSLAuthentication extends SVNAuthentication
SSL
credential kind.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MSCAPI |
private java.lang.String |
myAlias |
private java.io.File |
myCertificate |
private byte[] |
myCertificateData |
private java.lang.String |
myCertificatePath |
private char[] |
myPassword |
private java.lang.String |
mySSLKind |
static java.lang.String |
SSL |
Modifier | Constructor and Description |
---|---|
|
SVNSSLAuthentication(java.io.File certFile,
java.lang.String password,
boolean storageAllowed)
Deprecated.
Use {@link #newInstance(File, char[], boolean, SVNURL, boolean) method
|
|
SVNSSLAuthentication(java.io.File certFile,
java.lang.String password,
boolean storageAllowed,
SVNURL url,
boolean isPartial)
Deprecated.
Use {@link #newInstance(File, char[], boolean, SVNURL, boolean) method
|
|
SVNSSLAuthentication(java.lang.String sslKind,
java.lang.String alias,
boolean storageAllowed,
SVNURL url,
boolean isPartial)
Deprecated.
|
private |
SVNSSLAuthentication(java.lang.String sslKind,
java.lang.String alias,
byte[] cert,
char[] password,
boolean storageAllowed,
SVNURL url,
boolean isPartial) |
private |
SVNSSLAuthentication(java.lang.String sslKind,
java.lang.String alias,
java.io.File certFile,
char[] password,
boolean storageAllowed,
SVNURL url,
boolean isPartial) |
Modifier and Type | Method and Description |
---|---|
SVNAuthentication |
copy()
Creates a deep copy of this credentials object.
|
void |
dismissSensitiveData()
Disposes sensitive data (e.g.
|
java.lang.String |
getAlias()
Only used for MSCAPI
|
byte[] |
getCertificate()
Returns certificate raw data
|
java.io.File |
getCertificateFile()
Returns a user's certificate file.
|
java.lang.String |
getCertificatePath() |
java.lang.String |
getPassword()
Deprecated.
Use
getPasswordValue() method |
char[] |
getPasswordValue()
Returns password.
|
java.lang.String |
getSSLKind() |
static boolean |
isCertificatePath(java.lang.String path) |
static SVNSSLAuthentication |
newInstance(byte[] cert,
char[] password,
boolean storageAllowed,
SVNURL url,
boolean isPartial) |
static SVNSSLAuthentication |
newInstance(java.io.File certFile,
char[] password,
boolean storageAllowed,
SVNURL url,
boolean isPartial) |
static SVNSSLAuthentication |
newInstance(java.lang.String kind,
java.lang.String alias,
boolean storageAllowed,
SVNURL url,
boolean isPartial) |
void |
setCertificatePath(java.lang.String path) |
copyOf, getKind, getURL, getUserName, isPartial, isStorageAllowed
public static final java.lang.String MSCAPI
public static final java.lang.String SSL
private java.io.File myCertificate
private char[] myPassword
private java.lang.String mySSLKind
private java.lang.String myAlias
private java.lang.String myCertificatePath
private byte[] myCertificateData
public SVNSSLAuthentication(java.io.File certFile, java.lang.String password, boolean storageAllowed)
public SVNSSLAuthentication(java.io.File certFile, java.lang.String password, boolean storageAllowed, SVNURL url, boolean isPartial)
public SVNSSLAuthentication(java.lang.String sslKind, java.lang.String alias, boolean storageAllowed, SVNURL url, boolean isPartial)
newInstance(String, String, boolean, SVNURL, boolean)
methodprivate SVNSSLAuthentication(java.lang.String sslKind, java.lang.String alias, java.io.File certFile, char[] password, boolean storageAllowed, SVNURL url, boolean isPartial)
private SVNSSLAuthentication(java.lang.String sslKind, java.lang.String alias, byte[] cert, char[] password, boolean storageAllowed, SVNURL url, boolean isPartial)
public static SVNSSLAuthentication newInstance(java.io.File certFile, char[] password, boolean storageAllowed, SVNURL url, boolean isPartial)
certFile
- user's certificate filepassword
- user's passwordstorageAllowed
- to store or not this credential in a
credentials cacheurl
- url these credentials are applied toisPartial
- public static SVNSSLAuthentication newInstance(byte[] cert, char[] password, boolean storageAllowed, SVNURL url, boolean isPartial)
cert
- user's certificatepassword
- user's passwordstorageAllowed
- to store or not this credential in a
credentials cacheurl
- url these credentials are applied toisPartial
- public static SVNSSLAuthentication newInstance(java.lang.String kind, java.lang.String alias, boolean storageAllowed, SVNURL url, boolean isPartial)
public java.lang.String getPassword()
getPasswordValue()
methodpublic byte[] getCertificate()
public char[] getPasswordValue()
public java.io.File getCertificateFile()
public java.lang.String getSSLKind()
public java.lang.String getAlias()
public java.lang.String getCertificatePath()
public void setCertificatePath(java.lang.String path)
public static boolean isCertificatePath(java.lang.String path)
public void dismissSensitiveData()
SVNAuthentication
dismissSensitiveData
in class SVNAuthentication
public SVNAuthentication copy()
SVNAuthentication
copy
in class SVNAuthentication