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

org.defendev.common.net.ssl.HostnameVerifierFactory Maven / Gradle / Ivy

Go to download

Common utils purely based on JDK and no other dependencies. Only exception being for org.jetbrains:annotations for building stratgic Kotlin language compatibility.Another only-exception is Apache Commons Lang3.

The newest version!
package org.defendev.common.net.ssl;

import javax.net.ssl.HostnameVerifier;


/**
 * This class consists exclusively of static methods that return a javax.net.ssl.HostnameVerifier
 * with specific behavior.
 *
 *
 */
public class HostnameVerifierFactory {

    /**
     * Returns most permissive possible (always accepting) HostnameVerifier.
     *
     * @return implementation of javax.net.ssl.HostnameVerifier
     */
    public static HostnameVerifier lax() {
        return new LaxHostnameVerifier();
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy