Class ThreadLocalX509TrustManager
- java.lang.Object
-
- org.opensaml.security.x509.tls.impl.ThreadLocalX509TrustManager
-
- All Implemented Interfaces:
TrustManager,X509TrustManager
public class ThreadLocalX509TrustManager extends Object implements X509TrustManager
An implementation ofX509TrustManagerwhich performs its evaluation using trust engine and criteria instances available fromThreadLocalX509TrustEngineContext.
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogLogger.
-
Constructor Summary
Constructors Constructor Description ThreadLocalX509TrustManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckClientTrusted(X509Certificate[] chain, String authType)voidcheckServerTrusted(X509Certificate[] chain, String authType)X509Certificate[]getAcceptedIssuers()protected voidperformTrustEval(X509Certificate[] chain, String authType)Perform trust evaluation on the specified certificate chain using the trust engine and criteria available fromThreadLocalX509TrustEngineContext.
-
-
-
Method Detail
-
getAcceptedIssuers
public X509Certificate[] getAcceptedIssuers()
- Specified by:
getAcceptedIssuersin interfaceX509TrustManager
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException
- Specified by:
checkClientTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException
- Specified by:
checkServerTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
performTrustEval
protected void performTrustEval(X509Certificate[] chain, String authType) throws CertificateException
Perform trust evaluation on the specified certificate chain using the trust engine and criteria available fromThreadLocalX509TrustEngineContext.- Parameters:
chain- the peer certificate chainauthType- the authentication type based on the client certificate- Throws:
CertificateException- if the certificate chain is not trusted by this TrustManager.
-
-