Class ValidityCheckingX509ExtendedTrustManager
java.lang.Object
javax.net.ssl.X509ExtendedTrustManager
org.jenkinsci.remoting.protocol.cert.ValidityCheckingX509ExtendedTrustManager
- All Implemented Interfaces:
TrustManager,X509TrustManager
An
X509ExtendedTrustManager that checks the validity of the chain before continuing with the (optional)
delegate X509ExtendedTrustManager.- Since:
- 3.0
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for aX509ExtendedTrustManagerthat will trust any certificates that are currently valid.Constructor for aX509ExtendedTrustManagerthat will trust any certificates that are both currently valid and trusted by the suppliedX509ExtendedTrustManager. -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckClientTrusted(X509Certificate[] chain, String authType) voidcheckClientTrusted(X509Certificate[] chain, String authType, Socket socket) voidcheckClientTrusted(X509Certificate[] chain, String authType, SSLEngine engine) voidcheckServerTrusted(X509Certificate[] chain, String authType) voidcheckServerTrusted(X509Certificate[] chain, String authType, Socket socket) voidcheckServerTrusted(X509Certificate[] chain, String authType, SSLEngine engine)
-
Constructor Details
-
ValidityCheckingX509ExtendedTrustManager
public ValidityCheckingX509ExtendedTrustManager()Constructor for aX509ExtendedTrustManagerthat will trust any certificates that are currently valid. -
ValidityCheckingX509ExtendedTrustManager
Constructor for aX509ExtendedTrustManagerthat will trust any certificates that are both currently valid and trusted by the suppliedX509ExtendedTrustManager.- Parameters:
delegate- the suppliedX509ExtendedTrustManagerthat all certificates must additionally be trusted by in order for a currently valid certificate to be trusted.
-
-
Method Details
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain, String authType, Socket socket) throws CertificateException - Specified by:
checkClientTrustedin classX509ExtendedTrustManager- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain, String authType, Socket socket) throws CertificateException - Specified by:
checkServerTrustedin classX509ExtendedTrustManager- Throws:
CertificateException
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain, String authType, SSLEngine engine) throws CertificateException - Specified by:
checkClientTrustedin classX509ExtendedTrustManager- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain, String authType, SSLEngine engine) throws CertificateException - Specified by:
checkServerTrustedin classX509ExtendedTrustManager- Throws:
CertificateException
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException - Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException - Throws:
CertificateException
-
getAcceptedIssuers
-