Class HTTPSSLKeyManager

java.lang.Object
org.tmatesoft.svn.core.internal.io.dav.http.HTTPSSLKeyManager
All Implemented Interfaces:
javax.net.ssl.KeyManager, javax.net.ssl.X509KeyManager

public final class HTTPSSLKeyManager extends java.lang.Object implements javax.net.ssl.X509KeyManager
Version:
1.3
  • Field Details

    • authenticationManager

      private final ISVNAuthenticationManager authenticationManager
    • realm

      private final java.lang.String realm
    • url

      private final SVNURL url
    • myKeyManagers

      private javax.net.ssl.KeyManager[] myKeyManagers
    • myAuthentication

      private SVNSSLAuthentication myAuthentication
    • myException

      private java.lang.Exception myException
    • chooseAlias

      private java.lang.String chooseAlias
    • myIsFirstRequest

      private boolean myIsFirstRequest
  • Constructor Details

  • Method Details

    • loadClientCertificate

      public static javax.net.ssl.KeyManager[] loadClientCertificate() throws SVNException
      Throws:
      SVNException
    • loadClientCertificate

      public static javax.net.ssl.KeyManager[] loadClientCertificate(java.io.File clientCertFile, java.lang.String clientCertPassword) throws SVNException
      Deprecated.
      Parameters:
      clientCertFile -
      clientCertPassword -
      Returns:
      Throws:
      SVNException
    • loadClientCertificate

      public static javax.net.ssl.KeyManager[] loadClientCertificate(byte[] clientCert, char[] clientCertPassword) throws SVNException
      Throws:
      SVNException
    • loadClientCertificate

      public static javax.net.ssl.KeyManager[] loadClientCertificate(java.io.File clientCertFile, char[] clientCertPassword) throws SVNException
      Throws:
      SVNException
    • loadClientCertificate

      public javax.net.ssl.KeyManager[] loadClientCertificate(SVNSSLAuthentication sslAuthentication) throws SVNException
      Throws:
      SVNException
    • getClientAliases

      public java.lang.String[] getClientAliases(java.lang.String location, java.security.Principal[] principals)
      Specified by:
      getClientAliases in interface javax.net.ssl.X509KeyManager
    • chooseClientAlias

      public java.lang.String chooseClientAlias(java.lang.String[] strings, java.security.Principal[] principals, java.net.Socket socket)
      Specified by:
      chooseClientAlias in interface javax.net.ssl.X509KeyManager
    • getServerAliases

      public java.lang.String[] getServerAliases(java.lang.String location, java.security.Principal[] principals)
      Specified by:
      getServerAliases in interface javax.net.ssl.X509KeyManager
    • chooseServerAlias

      public java.lang.String chooseServerAlias(java.lang.String location, java.security.Principal[] principals, java.net.Socket socket)
      Specified by:
      chooseServerAlias in interface javax.net.ssl.X509KeyManager
    • getCertificateChain

      public java.security.cert.X509Certificate[] getCertificateChain(java.lang.String location)
      Specified by:
      getCertificateChain in interface javax.net.ssl.X509KeyManager
    • getPrivateKey

      public java.security.PrivateKey getPrivateKey(java.lang.String string)
      Specified by:
      getPrivateKey in interface javax.net.ssl.X509KeyManager
    • getException

      public java.lang.Exception getException()
    • acknowledgeAndClearAuthentication

      public void acknowledgeAndClearAuthentication(SVNErrorMessage errorMessage) throws SVNException
      Throws:
      SVNException
    • isInitialized

      public boolean isInitialized()
    • initializeNoException

      private boolean initializeNoException()
    • initialize

      private boolean initialize() throws SVNException
      Throws:
      SVNException
    • getX509KeyManagers

      private static java.util.List<javax.net.ssl.X509KeyManager> getX509KeyManagers(javax.net.ssl.KeyManager[] keyManagers)
    • isMSCAPI

      private static boolean isMSCAPI(SVNSSLAuthentication sslAuthentication)