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

net.trajano.openidconnect.jaspic.internal.NullHostnameVerifier Maven / Gradle / Ivy

The newest version!
package net.trajano.openidconnect.jaspic.internal;

import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLSession;

/**
 * Host name verifier that does not perform any checks.
 */
public class NullHostnameVerifier implements HostnameVerifier {

    /**
     * Singleton instance.
     */
    public static final HostnameVerifier INSTANCE = new NullHostnameVerifier();

    /**
     * Always return true.
     *
     * @param hostname
     *            hostname
     * @param sslSession
     *            SSL session
     * @return true
     */
    @Override
    public boolean verify(final String hostname, final SSLSession sslSession) {
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy