Package org.tmatesoft.svn.core.auth
Class SVNSSLAuthentication
java.lang.Object
org.tmatesoft.svn.core.auth.SVNAuthentication
org.tmatesoft.svn.core.auth.SVNSSLAuthentication
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final java.lang.String
private java.lang.String
private java.io.File
private byte[]
private java.lang.String
private char[]
private java.lang.String
static final java.lang.String
-
Constructor Summary
ConstructorsModifierConstructorDescriptionSVNSSLAuthentication
(java.io.File certFile, java.lang.String password, boolean storageAllowed) Deprecated.SVNSSLAuthentication
(java.io.File certFile, java.lang.String password, boolean storageAllowed, SVNURL url, boolean isPartial) Deprecated.Usemethod
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) -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Creates a deep copy of this credentials object.void
Disposes sensitive data (e.g.java.lang.String
getAlias()
Only used for MSCAPIbyte[]
Returns certificate raw datajava.io.File
Returns a user's certificate file.java.lang.String
java.lang.String
Deprecated.UsegetPasswordValue()
methodchar[]
Returns password.java.lang.String
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) Methods inherited from class org.tmatesoft.svn.core.auth.SVNAuthentication
copyOf, getKind, getURL, getUserName, isPartial, isStorageAllowed
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
MSCAPI
public static final java.lang.String MSCAPI- See Also:
-
SSL
public static final java.lang.String SSL- See Also:
-
myCertificate
private java.io.File myCertificate -
myPassword
private char[] myPassword -
mySSLKind
private java.lang.String mySSLKind -
myAlias
private java.lang.String myAlias -
myCertificatePath
private java.lang.String myCertificatePath -
myCertificateData
private byte[] myCertificateData
-
-
Constructor Details
-
SVNSSLAuthentication
public SVNSSLAuthentication(java.io.File certFile, java.lang.String password, boolean storageAllowed) Deprecated.Usemethod
-
SVNSSLAuthentication
public SVNSSLAuthentication(java.io.File certFile, java.lang.String password, boolean storageAllowed, SVNURL url, boolean isPartial) Deprecated.Usemethod
-
SVNSSLAuthentication
public SVNSSLAuthentication(java.lang.String sslKind, java.lang.String alias, boolean storageAllowed, SVNURL url, boolean isPartial) Deprecated. -
SVNSSLAuthentication
private SVNSSLAuthentication(java.lang.String sslKind, java.lang.String alias, java.io.File certFile, char[] password, boolean storageAllowed, SVNURL url, boolean isPartial) -
SVNSSLAuthentication
private SVNSSLAuthentication(java.lang.String sslKind, java.lang.String alias, byte[] cert, char[] password, boolean storageAllowed, SVNURL url, boolean isPartial)
-
-
Method Details
-
newInstance
public static SVNSSLAuthentication newInstance(java.io.File certFile, char[] password, boolean storageAllowed, SVNURL url, boolean isPartial) - Parameters:
certFile
- user's certificate filepassword
- user's passwordstorageAllowed
- to store or not this credential in a credentials cacheurl
- url these credentials are applied toisPartial
-- Returns:
- authentication object
-
newInstance
public static SVNSSLAuthentication newInstance(byte[] cert, char[] password, boolean storageAllowed, SVNURL url, boolean isPartial) - Parameters:
cert
- user's certificatepassword
- user's passwordstorageAllowed
- to store or not this credential in a credentials cacheurl
- url these credentials are applied toisPartial
-- Returns:
- authentication object
-
newInstance
public static SVNSSLAuthentication newInstance(java.lang.String kind, java.lang.String alias, boolean storageAllowed, SVNURL url, boolean isPartial) -
getPassword
public java.lang.String getPassword()Deprecated.UsegetPasswordValue()
methodReturns 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) -
dismissSensitiveData
public void dismissSensitiveData()Description copied from class:SVNAuthentication
Disposes sensitive data (e.g. password) stored in this object.- Overrides:
dismissSensitiveData
in classSVNAuthentication
-
copy
Description copied from class:SVNAuthentication
Creates a deep copy of this credentials object. Sensitive data (e.g. password) is copied too.- Overrides:
copy
in classSVNAuthentication
- Returns:
- copy of this object.
-
method