Package org.minidns.dane.java7
Class DaneExtendedTrustManager
- java.lang.Object
-
- javax.net.ssl.X509ExtendedTrustManager
-
- org.minidns.dane.java7.DaneExtendedTrustManager
-
- All Implemented Interfaces:
javax.net.ssl.TrustManager
,javax.net.ssl.X509TrustManager
public class DaneExtendedTrustManager extends javax.net.ssl.X509ExtendedTrustManager
-
-
Constructor Summary
Constructors Constructor Description DaneExtendedTrustManager()
DaneExtendedTrustManager(javax.net.ssl.X509TrustManager base)
DaneExtendedTrustManager(DaneVerifier verifier, javax.net.ssl.X509TrustManager base)
DaneExtendedTrustManager(DnssecClient client)
DaneExtendedTrustManager(DnssecClient client, javax.net.ssl.X509TrustManager base)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkClientTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType)
void
checkClientTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType, java.net.Socket socket)
void
checkClientTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType, javax.net.ssl.SSLEngine engine)
void
checkServerTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType)
void
checkServerTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType, java.net.Socket socket)
void
checkServerTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType, javax.net.ssl.SSLEngine engine)
java.security.cert.X509Certificate[]
getAcceptedIssuers()
static void
inject()
static void
inject(DaneExtendedTrustManager trustManager)
-
-
-
Constructor Detail
-
DaneExtendedTrustManager
public DaneExtendedTrustManager()
-
DaneExtendedTrustManager
public DaneExtendedTrustManager(DnssecClient client)
-
DaneExtendedTrustManager
public DaneExtendedTrustManager(javax.net.ssl.X509TrustManager base)
-
DaneExtendedTrustManager
public DaneExtendedTrustManager(DnssecClient client, javax.net.ssl.X509TrustManager base)
-
DaneExtendedTrustManager
public DaneExtendedTrustManager(DaneVerifier verifier, javax.net.ssl.X509TrustManager base)
-
-
Method Detail
-
inject
public static void inject()
-
inject
public static void inject(DaneExtendedTrustManager trustManager)
-
checkClientTrusted
public void checkClientTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType, java.net.Socket socket) throws java.security.cert.CertificateException
- Specified by:
checkClientTrusted
in classjavax.net.ssl.X509ExtendedTrustManager
- Throws:
java.security.cert.CertificateException
-
checkServerTrusted
public void checkServerTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType, java.net.Socket socket) throws java.security.cert.CertificateException
- Specified by:
checkServerTrusted
in classjavax.net.ssl.X509ExtendedTrustManager
- Throws:
java.security.cert.CertificateException
-
checkClientTrusted
public void checkClientTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType, javax.net.ssl.SSLEngine engine) throws java.security.cert.CertificateException
- Specified by:
checkClientTrusted
in classjavax.net.ssl.X509ExtendedTrustManager
- Throws:
java.security.cert.CertificateException
-
checkServerTrusted
public void checkServerTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType, javax.net.ssl.SSLEngine engine) throws java.security.cert.CertificateException
- Specified by:
checkServerTrusted
in classjavax.net.ssl.X509ExtendedTrustManager
- Throws:
java.security.cert.CertificateException
-
checkClientTrusted
public void checkClientTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType) throws java.security.cert.CertificateException
- Throws:
java.security.cert.CertificateException
-
checkServerTrusted
public void checkServerTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType) throws java.security.cert.CertificateException
- Throws:
java.security.cert.CertificateException
-
getAcceptedIssuers
public java.security.cert.X509Certificate[] getAcceptedIssuers()
-
-