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

com.xebialabs.overthere.cifs.JumpstationAwareHostnameVerifier Maven / Gradle / Ivy

There is a newer version: 5.6.16
Show newest version
package com.xebialabs.overthere.cifs;

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

/**
 * Use this verifier when establishing secured connection via jumpstation.
 */
public class JumpstationAwareHostnameVerifier implements HostnameVerifier {
    String remoteHost;
    HostnameVerifier hostnameVerifier;

    public JumpstationAwareHostnameVerifier(String remoteHost, HostnameVerifier hostnameVerifier) {
        this.remoteHost = remoteHost;
        this.hostnameVerifier = hostnameVerifier;
    }

    @Override
    public boolean verify(final String host, final SSLSession session) {
        return this.hostnameVerifier.verify(remoteHost, session);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy