Class DefaultSVNSSLTrustManager
java.lang.Object
org.tmatesoft.svn.core.internal.wc.DefaultSVNSSLTrustManager
- All Implemented Interfaces:
TrustManager
,X509TrustManager
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate File
private DefaultSVNAuthenticationManager
private X509TrustManager[]
private boolean
private String
private File[]
private X509Certificate[]
private SVNURL
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultSVNSSLTrustManager
(File authDir, SVNURL url, File[] serverCertFiles, boolean useKeyStore, DefaultSVNAuthenticationManager authManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkClientTrusted
(X509Certificate[] certs, String arg1) void
checkServerTrusted
(X509Certificate[] certs, String algorithm) private CertificateException
checkServerTrustedByDefault
(X509Certificate[] certs, String algorithm) private X509TrustManager[]
private String
getStoredServerCertificate
(String realm) private void
init()
private X509TrustManager[]
static X509Certificate
loadCertificate
(File pemFile) private void
storeServerCertificate
(String realm, String data, int failures)
-
Field Details
-
myURL
-
myAuthManager
-
myTrustedCerts
-
myRealm
-
myAuthDirectory
-
myIsUseKeyStore
private boolean myIsUseKeyStore -
myServerCertFiles
-
myDefaultTrustManagers
-
-
Constructor Details
-
DefaultSVNSSLTrustManager
public DefaultSVNSSLTrustManager(File authDir, SVNURL url, File[] serverCertFiles, boolean useKeyStore, DefaultSVNAuthenticationManager authManager)
-
-
Method Details
-
getDefaultTrustManagers
-
initDefaultTrustManagers
-
init
private void init() -
getAcceptedIssuers
- Specified by:
getAcceptedIssuers
in interfaceX509TrustManager
-
checkClientTrusted
- Specified by:
checkClientTrusted
in interfaceX509TrustManager
- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] certs, String algorithm) throws CertificateException - Specified by:
checkServerTrusted
in interfaceX509TrustManager
- Throws:
CertificateException
-
checkServerTrustedByDefault
-
getStoredServerCertificate
-
storeServerCertificate
- Throws:
SVNException
-
loadCertificate
-