com.xebialabs.overthere.cifs.JumpstationAwareHostnameVerifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of overthere Show documentation
Show all versions of overthere Show documentation
Remote file manipulation and process execution framework for Java
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