opendap.dap
Class DAPTrustStrategy

java.lang.Object
  extended by opendap.dap.DAPTrustStrategy
All Implemented Interfaces:
org.apache.http.conn.ssl.TrustStrategy

public class DAPTrustStrategy
extends java.lang.Object
implements org.apache.http.conn.ssl.TrustStrategy

A trust strategy that accepts self-signed certificates as trusted. Verification of all other certificates is done by the trust manager configured in the SSL context.

Since:
4.1

Constructor Summary
DAPTrustStrategy()
           
 
Method Summary
 boolean isTrusted(java.security.cert.X509Certificate[] certificates, java.lang.String authType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DAPTrustStrategy

public DAPTrustStrategy()
Method Detail

isTrusted

public boolean isTrusted(java.security.cert.X509Certificate[] certificates,
                         java.lang.String authType)
                  throws java.security.cert.CertificateException
Specified by:
isTrusted in interface org.apache.http.conn.ssl.TrustStrategy
Throws:
java.security.cert.CertificateException