Class TrustSpecificHostsStrategy

  • All Implemented Interfaces:
    TrustStrategy

    public class TrustSpecificHostsStrategy
    extends java.lang.Object
    implements TrustStrategy
    • Constructor Summary

      Constructors 
      Constructor Description
      TrustSpecificHostsStrategy​(java.util.List<java.lang.String> trustedHosts)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isTrusted​(java.security.cert.X509Certificate[] chain, java.lang.String authType)  
      boolean isTrusted​(java.security.cert.X509Certificate[] chain, java.lang.String authType, java.net.Socket socket)  
      boolean isTrusted​(java.security.cert.X509Certificate[] chain, java.lang.String authType, javax.net.ssl.SSLEngine engine)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TrustSpecificHostsStrategy

        public TrustSpecificHostsStrategy​(java.util.List<java.lang.String> trustedHosts)
    • Method Detail

      • isTrusted

        public boolean isTrusted​(java.security.cert.X509Certificate[] chain,
                                 java.lang.String authType)
        Specified by:
        isTrusted in interface TrustStrategy
      • isTrusted

        public boolean isTrusted​(java.security.cert.X509Certificate[] chain,
                                 java.lang.String authType,
                                 java.net.Socket socket)
        Specified by:
        isTrusted in interface TrustStrategy
      • isTrusted

        public boolean isTrusted​(java.security.cert.X509Certificate[] chain,
                                 java.lang.String authType,
                                 javax.net.ssl.SSLEngine engine)
        Specified by:
        isTrusted in interface TrustStrategy