List of usage examples for javax.net.ssl TrustManager getClass
@HotSpotIntrinsicCandidate public final native Class<?> getClass();
From source file:com.dtolabs.rundeck.jetty.jaas.HostnameVerifyingTrustManager.java
public HostnameVerifyingTrustManager(TrustManager trustManager) { if (!(trustManager instanceof X509TrustManager)) { throw new IllegalArgumentException(String.format( "Expected trustManager to be of type X509TrustManager but was [%s]", trustManager.getClass())); }// w w w . ja v a 2s.c o m this.verifier = HostnameVerifier.STRICT; this.realTrustManager = (X509TrustManager) trustManager; }