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
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionSVNSSLAuthentication(File certFile, String password, boolean storageAllowed) Deprecated.SVNSSLAuthentication(File certFile, String password, boolean storageAllowed, SVNURL url, boolean isPartial) Deprecated.UsemethodSVNSSLAuthentication(String sslKind, String alias, boolean storageAllowed, SVNURL url, boolean isPartial) Deprecated.privateSVNSSLAuthentication(String sslKind, String alias, byte[] cert, char[] password, boolean storageAllowed, SVNURL url, boolean isPartial) privateSVNSSLAuthentication(String sslKind, String alias, File certFile, char[] password, boolean storageAllowed, SVNURL url, boolean isPartial) -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a deep copy of this credentials object.voidDisposes sensitive data (e.g.getAlias()Only used for MSCAPIbyte[]Returns certificate raw dataReturns a user's certificate file.Deprecated.UsegetPasswordValue()methodchar[]Returns password.static booleanisCertificatePath(String path) static SVNSSLAuthenticationnewInstance(byte[] cert, char[] password, boolean storageAllowed, SVNURL url, boolean isPartial) static SVNSSLAuthenticationnewInstance(File certFile, char[] password, boolean storageAllowed, SVNURL url, boolean isPartial) static SVNSSLAuthenticationnewInstance(String kind, String alias, boolean storageAllowed, SVNURL url, boolean isPartial) voidsetCertificatePath(String path) Methods inherited from class org.tmatesoft.svn.core.auth.SVNAuthentication
copyOf, getKind, getURL, getUserName, isPartial, isStorageAllowed
-
Field Details
-
MSCAPI
- See Also:
-
SSL
- See Also:
-
myCertificate
-
myPassword
private char[] myPassword -
mySSLKind
-
myAlias
-
myCertificatePath
-
myCertificateData
private byte[] myCertificateData
-
-
Constructor Details
-
SVNSSLAuthentication
Deprecated.Usemethod -
SVNSSLAuthentication
public SVNSSLAuthentication(File certFile, String password, boolean storageAllowed, SVNURL url, boolean isPartial) Deprecated.Usemethod -
SVNSSLAuthentication
public SVNSSLAuthentication(String sslKind, String alias, boolean storageAllowed, SVNURL url, boolean isPartial) Deprecated. -
SVNSSLAuthentication
-
SVNSSLAuthentication
-
-
Method Details
-
newInstance
public static SVNSSLAuthentication newInstance(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(String kind, String alias, boolean storageAllowed, SVNURL url, boolean isPartial) -
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
Returns a user's certificate file.- Returns:
- certificate file
-
getSSLKind
-
getAlias
Only used for MSCAPI -
getCertificatePath
-
setCertificatePath
-
isCertificatePath
-
dismissSensitiveData
public void dismissSensitiveData()Description copied from class:SVNAuthenticationDisposes sensitive data (e.g. password) stored in this object.- Overrides:
dismissSensitiveDatain classSVNAuthentication
-
copy
Description copied from class:SVNAuthenticationCreates a deep copy of this credentials object. Sensitive data (e.g. password) is copied too.- Overrides:
copyin classSVNAuthentication- Returns:
- copy of this object.
-
method