All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.server.security.HostnameVerificationPolicy Maven / Gradle / Ivy

The newest version!
package org.infinispan.server.security;

import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.HttpsURLConnection;

public enum HostnameVerificationPolicy {
   ANY((s, sslSession) -> true),
   DEFAULT(HttpsURLConnection.getDefaultHostnameVerifier());

   private final HostnameVerifier verifier;

   HostnameVerificationPolicy(HostnameVerifier verifier) {
      this.verifier = verifier;
   }

   public HostnameVerifier getVerifier() {
      return verifier;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy