Example usage for javax.net.ssl TrustManager getClass

List of usage examples for javax.net.ssl TrustManager getClass

Introduction

In this page you can find the example usage for javax.net.ssl TrustManager getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

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;
}