Class AlwaysTrustManager
- java.lang.Object
-
- net.webpdf.wsclient.session.connection.https.AlwaysTrustManager
-
- All Implemented Interfaces:
TrustManager,X509TrustManager
public class AlwaysTrustManager extends Object implements X509TrustManager
An instance ofAlwaysTrustManagerimplements aX509TrustManagerthat shall accept allX509Certificateas trustworthy.
-
-
Constructor Summary
Constructors Constructor Description AlwaysTrustManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckClientTrusted(@Nullable X509Certificate[] certificates, @Nullable String authType)Does never throw exceptions forX509Certificates - i.e.: Does not validate certificates and trusts all certificates.voidcheckServerTrusted(@Nullable X509Certificate[] certificates, @Nullable String authType)Does never throw exceptions forX509Certificates - i.e.: Does not validate certificates and trusts all certificates.@NotNull X509Certificate[]getAcceptedIssuers()This implementation does not provide acceptedX509Certificates authority information at all.
-
-
-
Method Detail
-
checkClientTrusted
public void checkClientTrusted(@Nullable @Nullable X509Certificate[] certificates, @Nullable @Nullable String authType)Does never throw exceptions forX509Certificates - i.e.: Does not validate certificates and trusts all certificates.- Specified by:
checkClientTrustedin interfaceX509TrustManager- Parameters:
certificates- The peerX509Certificates chain.authType- The used authentication type based on the clientX509Certificate.
-
checkServerTrusted
public void checkServerTrusted(@Nullable @Nullable X509Certificate[] certificates, @Nullable @Nullable String authType)Does never throw exceptions forX509Certificates - i.e.: Does not validate certificates and trusts all certificates.- Specified by:
checkServerTrustedin interfaceX509TrustManager- Parameters:
certificates- The peerX509Certificatechain.authType- The used authentication type based on the clientX509Certificate.
-
getAcceptedIssuers
@NotNull public @NotNull X509Certificate[] getAcceptedIssuers()
This implementation does not provide acceptedX509Certificates authority information at all.- Specified by:
getAcceptedIssuersin interfaceX509TrustManager- Returns:
- A non-null (possibly empty) array of acceptable CA issuer
X509Certificates.
-
-