Class DefaultSVNSSLTrustManager
java.lang.Object
org.tmatesoft.svn.core.internal.wc.DefaultSVNSSLTrustManager
- All Implemented Interfaces:
javax.net.ssl.TrustManager,javax.net.ssl.X509TrustManager
public class DefaultSVNSSLTrustManager
extends java.lang.Object
implements javax.net.ssl.X509TrustManager
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate java.io.Fileprivate DefaultSVNAuthenticationManagerprivate javax.net.ssl.X509TrustManager[]private booleanprivate java.lang.Stringprivate java.io.File[]private java.security.cert.X509Certificate[]private SVNURL -
Constructor Summary
ConstructorsConstructorDescriptionDefaultSVNSSLTrustManager(java.io.File authDir, SVNURL url, java.io.File[] serverCertFiles, boolean useKeyStore, DefaultSVNAuthenticationManager authManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckClientTrusted(java.security.cert.X509Certificate[] certs, java.lang.String arg1) voidcheckServerTrusted(java.security.cert.X509Certificate[] certs, java.lang.String algorithm) private java.security.cert.CertificateExceptioncheckServerTrustedByDefault(java.security.cert.X509Certificate[] certs, java.lang.String algorithm) java.security.cert.X509Certificate[]private javax.net.ssl.X509TrustManager[]private java.lang.StringgetStoredServerCertificate(java.lang.String realm) private voidinit()private javax.net.ssl.X509TrustManager[]static java.security.cert.X509CertificateloadCertificate(java.io.File pemFile) private voidstoreServerCertificate(java.lang.String realm, java.lang.String data, int failures) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
myURL
-
myAuthManager
-
myTrustedCerts
private java.security.cert.X509Certificate[] myTrustedCerts -
myRealm
private java.lang.String myRealm -
myAuthDirectory
private java.io.File myAuthDirectory -
myIsUseKeyStore
private boolean myIsUseKeyStore -
myServerCertFiles
private java.io.File[] myServerCertFiles -
myDefaultTrustManagers
private javax.net.ssl.X509TrustManager[] myDefaultTrustManagers
-
-
Constructor Details
-
DefaultSVNSSLTrustManager
public DefaultSVNSSLTrustManager(java.io.File authDir, SVNURL url, java.io.File[] serverCertFiles, boolean useKeyStore, DefaultSVNAuthenticationManager authManager)
-
-
Method Details
-
getDefaultTrustManagers
private javax.net.ssl.X509TrustManager[] getDefaultTrustManagers() -
initDefaultTrustManagers
private javax.net.ssl.X509TrustManager[] initDefaultTrustManagers() -
init
private void init() -
getAcceptedIssuers
public java.security.cert.X509Certificate[] getAcceptedIssuers()- Specified by:
getAcceptedIssuersin interfacejavax.net.ssl.X509TrustManager
-
checkClientTrusted
public void checkClientTrusted(java.security.cert.X509Certificate[] certs, java.lang.String arg1) throws java.security.cert.CertificateException - Specified by:
checkClientTrustedin interfacejavax.net.ssl.X509TrustManager- Throws:
java.security.cert.CertificateException
-
checkServerTrusted
public void checkServerTrusted(java.security.cert.X509Certificate[] certs, java.lang.String algorithm) throws java.security.cert.CertificateException - Specified by:
checkServerTrustedin interfacejavax.net.ssl.X509TrustManager- Throws:
java.security.cert.CertificateException
-
checkServerTrustedByDefault
private java.security.cert.CertificateException checkServerTrustedByDefault(java.security.cert.X509Certificate[] certs, java.lang.String algorithm) -
getStoredServerCertificate
private java.lang.String getStoredServerCertificate(java.lang.String realm) -
storeServerCertificate
private void storeServerCertificate(java.lang.String realm, java.lang.String data, int failures) throws SVNException - Throws:
SVNException
-
loadCertificate
public static java.security.cert.X509Certificate loadCertificate(java.io.File pemFile)
-