Class TrustSpecificHostsStrategy
- java.lang.Object
-
- com.github.tomakehurst.wiremock.http.ssl.TrustSpecificHostsStrategy
-
- All Implemented Interfaces:
TrustStrategy
public class TrustSpecificHostsStrategy extends java.lang.Object implements TrustStrategy
-
-
Constructor Summary
Constructors Constructor Description TrustSpecificHostsStrategy(java.util.List<java.lang.String> trustedHosts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType)
boolean
isTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType, java.net.Socket socket)
boolean
isTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType, javax.net.ssl.SSLEngine engine)
-
-
-
Method Detail
-
isTrusted
public boolean isTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType)
- Specified by:
isTrusted
in interfaceTrustStrategy
-
isTrusted
public boolean isTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType, java.net.Socket socket)
- Specified by:
isTrusted
in interfaceTrustStrategy
-
isTrusted
public boolean isTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType, javax.net.ssl.SSLEngine engine)
- Specified by:
isTrusted
in interfaceTrustStrategy
-
-