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 Fileprivate DefaultSVNAuthenticationManagerprivate X509TrustManager[]private booleanprivate Stringprivate File[]private X509Certificate[]private SVNURL -
Constructor Summary
ConstructorsConstructorDescriptionDefaultSVNSSLTrustManager(File authDir, SVNURL url, File[] serverCertFiles, boolean useKeyStore, DefaultSVNAuthenticationManager authManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckClientTrusted(X509Certificate[] certs, String arg1) voidcheckServerTrusted(X509Certificate[] certs, String algorithm) private CertificateExceptioncheckServerTrustedByDefault(X509Certificate[] certs, String algorithm) private X509TrustManager[]private StringgetStoredServerCertificate(String realm) private voidinit()private X509TrustManager[]static X509CertificateloadCertificate(File pemFile) private voidstoreServerCertificate(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:
getAcceptedIssuersin interfaceX509TrustManager
-
checkClientTrusted
- Specified by:
checkClientTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] certs, String algorithm) throws CertificateException - Specified by:
checkServerTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
checkServerTrustedByDefault
-
getStoredServerCertificate
-
storeServerCertificate
- Throws:
SVNException
-
loadCertificate
-