Name
Interface com.sun.net.ssl.X509TrustManager
Synopsis
Classes that implement this interface are used to verify the certificates presented by an SSL peer during protocol negotiation. If you want to provide a custom trust manager, create a class that implements this interface, create a TrustManagerFactorySpi
class that returns that class, and register the factory with an appropriate security provider. Note that the certificates used with this class are java.security.cert.X509Certificate
objects.
Interface Definition
public interface com.sun.net.ssl.X509TrustManager implements com.sun.net.ssl.TrustManager { // Instance Methods public abstract X509Certificate[] getAcceptedIssuers( ); public abstract boolean isClientTrusted(X509Certificate[]); public abstract boolean isServerTrusted(X509Certificate[]); }
Get Java Security, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.