Package org.wildfly.security.ssl
Class SecurityDomainTrustManager
- java.lang.Object
-
- javax.net.ssl.X509ExtendedTrustManager
-
- org.wildfly.security.ssl.SecurityDomainTrustManager
-
- All Implemented Interfaces:
TrustManager
,X509TrustManager
class SecurityDomainTrustManager extends X509ExtendedTrustManager
- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
authenticationOptional
private X509ExtendedTrustManager
delegate
private MechanismConfigurationSelector
mechanismConfigurationSelector
private SecurityDomain
securityDomain
-
Constructor Summary
Constructors Constructor Description SecurityDomainTrustManager(X509ExtendedTrustManager delegate, SecurityDomain securityDomain, boolean authenticationOptional, MechanismConfigurationSelector mechanismConfigurationSelector)
SecurityDomainTrustManager(X509TrustManager delegate, SecurityDomain securityDomain, boolean authenticationOptional, MechanismConfigurationSelector mechanismConfigurationSelector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkClientTrusted(X509Certificate[] chain, String authType)
void
checkClientTrusted(X509Certificate[] chain, String authType, Socket socket)
void
checkClientTrusted(X509Certificate[] chain, String authType, SSLEngine sslEngine)
void
checkServerTrusted(X509Certificate[] chain, String authType)
void
checkServerTrusted(X509Certificate[] chain, String authType, Socket socket)
void
checkServerTrusted(X509Certificate[] chain, String authType, SSLEngine sslEngine)
private void
doClientTrustCheck(X509Certificate[] chain, String authType, SSLSession handshakeSession)
X509Certificate[]
getAcceptedIssuers()
-
-
-
Field Detail
-
delegate
private final X509ExtendedTrustManager delegate
-
securityDomain
private final SecurityDomain securityDomain
-
authenticationOptional
private final boolean authenticationOptional
-
mechanismConfigurationSelector
private final MechanismConfigurationSelector mechanismConfigurationSelector
-
-
Constructor Detail
-
SecurityDomainTrustManager
SecurityDomainTrustManager(X509ExtendedTrustManager delegate, SecurityDomain securityDomain, boolean authenticationOptional, MechanismConfigurationSelector mechanismConfigurationSelector)
-
SecurityDomainTrustManager
SecurityDomainTrustManager(X509TrustManager delegate, SecurityDomain securityDomain, boolean authenticationOptional, MechanismConfigurationSelector mechanismConfigurationSelector)
-
-
Method Detail
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain, String authType, Socket socket) throws CertificateException
- Specified by:
checkClientTrusted
in classX509ExtendedTrustManager
- Throws:
CertificateException
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain, String authType, SSLEngine sslEngine) throws CertificateException
- Specified by:
checkClientTrusted
in classX509ExtendedTrustManager
- Throws:
CertificateException
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException
- Throws:
CertificateException
-
doClientTrustCheck
private void doClientTrustCheck(X509Certificate[] chain, String authType, SSLSession handshakeSession) throws CertificateException
- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain, String authType, Socket socket) throws CertificateException
- Specified by:
checkServerTrusted
in classX509ExtendedTrustManager
- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain, String authType, SSLEngine sslEngine) throws CertificateException
- Specified by:
checkServerTrusted
in classX509ExtendedTrustManager
- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException
- Throws:
CertificateException
-
getAcceptedIssuers
public X509Certificate[] getAcceptedIssuers()
-
-