Package org.omnifaces.utils.security
Class InterceptingX509TrustManager
- java.lang.Object
-
- org.omnifaces.utils.security.InterceptingX509TrustManager
-
- All Implemented Interfaces:
TrustManager
,X509TrustManager
,DefaultX509TrustManager
public class InterceptingX509TrustManager extends Object implements DefaultX509TrustManager
A trust manager implementation that doesn't do anything other than- Author:
- Arjan Tijms
-
-
Constructor Summary
Constructors Constructor Description InterceptingX509TrustManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkClientTrusted(X509Certificate[] chain, String authType)
void
checkServerTrusted(X509Certificate[] chain, String authType)
List<X509Certificate[]>
getX509ClientCertificates()
Returns the client certificates that have been collectedList<X509Certificate[]>
getX509ServerCertificates()
Returns the server certificates that have been collected-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.omnifaces.utils.security.DefaultX509TrustManager
getAcceptedIssuers
-
-
-
-
Method Detail
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException
- Specified by:
checkClientTrusted
in interfaceDefaultX509TrustManager
- Specified by:
checkClientTrusted
in interfaceX509TrustManager
- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException
- Specified by:
checkServerTrusted
in interfaceDefaultX509TrustManager
- Specified by:
checkServerTrusted
in interfaceX509TrustManager
- Throws:
CertificateException
-
getX509ClientCertificates
public List<X509Certificate[]> getX509ClientCertificates()
Returns the client certificates that have been collected- Returns:
- the client certificates
-
getX509ServerCertificates
public List<X509Certificate[]> getX509ServerCertificates()
Returns the server certificates that have been collected- Returns:
- the server certificates
-
-