com.microsoft.tfs.core.config.httpclient.internal
Class DefaultX509TrustManager

java.lang.Object
  extended by com.microsoft.tfs.core.config.httpclient.internal.DefaultX509TrustManager
All Implemented Interfaces:
javax.net.ssl.TrustManager, javax.net.ssl.X509TrustManager

public class DefaultX509TrustManager
extends java.lang.Object
implements javax.net.ssl.X509TrustManager

An X509TrustManager that includes some additional trusted certificates (for example, the Microsoft Internet Authority CA cert.) These additional certificates may be important for connecting to Team Foundation Servers, particularly hosted (Azure) servers. After configuring the KeyStore with these additional certificates, this trust manager delegates to the system's default trust manager for the default algorithm.

Thread-safety:
unknown

Constructor Summary
DefaultX509TrustManager(java.security.KeyStore keyStore)
           
 
Method Summary
 void checkClientTrusted(java.security.cert.X509Certificate[] certificates, java.lang.String authType)
          
 void checkServerTrusted(java.security.cert.X509Certificate[] certificates, java.lang.String authType)
          
 java.security.cert.X509Certificate[] getAcceptedIssuers()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultX509TrustManager

public DefaultX509TrustManager(java.security.KeyStore keyStore)
                        throws java.security.NoSuchAlgorithmException,
                               java.security.KeyStoreException,
                               java.security.cert.CertificateException,
                               java.io.IOException
Throws:
java.security.NoSuchAlgorithmException
java.security.KeyStoreException
java.security.cert.CertificateException
java.io.IOException
Method Detail

checkClientTrusted

public void checkClientTrusted(java.security.cert.X509Certificate[] certificates,
                               java.lang.String authType)
                        throws java.security.cert.CertificateException

Specified by:
checkClientTrusted in interface javax.net.ssl.X509TrustManager
Throws:
java.security.cert.CertificateException

checkServerTrusted

public void checkServerTrusted(java.security.cert.X509Certificate[] certificates,
                               java.lang.String authType)
                        throws java.security.cert.CertificateException

Specified by:
checkServerTrusted in interface javax.net.ssl.X509TrustManager
Throws:
java.security.cert.CertificateException

getAcceptedIssuers

public java.security.cert.X509Certificate[] getAcceptedIssuers()

Specified by:
getAcceptedIssuers in interface javax.net.ssl.X509TrustManager


© 2015 Microsoft. All rights reserved.