"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "logback-core/src/main/java/ch/qos/logback/core/net/ssl/SSLConfigurableSocket.java" between
logback-1.2.3.tar.gz and logback-v_1.2.7.tar.gz

About: Logback is a generic Logging Framework (intended as a log4j successor).

SSLConfigurableSocket.java  (logback-1.2.3):SSLConfigurableSocket.java  (logback-v_1.2.7)
skipping to change at line 16 skipping to change at line 16
* either the terms of the Eclipse Public License v1.0 as published by * either the terms of the Eclipse Public License v1.0 as published by
* the Eclipse Foundation * the Eclipse Foundation
* *
* or (per the licensee's choosing) * or (per the licensee's choosing)
* *
* under the terms of the GNU Lesser General Public License version 2.1 * under the terms of the GNU Lesser General Public License version 2.1
* as published by the Free Software Foundation. * as published by the Free Software Foundation.
*/ */
package ch.qos.logback.core.net.ssl; package ch.qos.logback.core.net.ssl;
import javax.net.ssl.SSLParameters;
import javax.net.ssl.SSLSocket; import javax.net.ssl.SSLSocket;
/** /**
* An {@link SSLConfigurable} wrapper for an {@link SSLSocket}. * An {@link SSLConfigurable} wrapper for an {@link SSLSocket}.
* *
* @author Carl Harris * @author Carl Harris
* @author Bruno Harbulot
*/ */
public class SSLConfigurableSocket implements SSLConfigurable { public class SSLConfigurableSocket implements SSLConfigurable {
private final SSLSocket delegate; private final SSLSocket delegate;
public SSLConfigurableSocket(SSLSocket delegate) { public SSLConfigurableSocket(SSLSocket delegate) {
this.delegate = delegate; this.delegate = delegate;
} }
public String[] getDefaultProtocols() { public String[] getDefaultProtocols() {
skipping to change at line 63 skipping to change at line 65
} }
public void setNeedClientAuth(boolean state) { public void setNeedClientAuth(boolean state) {
delegate.setNeedClientAuth(state); delegate.setNeedClientAuth(state);
} }
public void setWantClientAuth(boolean state) { public void setWantClientAuth(boolean state) {
delegate.setWantClientAuth(state); delegate.setWantClientAuth(state);
} }
@Override
public void setHostnameVerification(boolean hostnameVerification) {
if (!hostnameVerification) {
return;
}
SSLParameters sslParameters = delegate.getSSLParameters();
sslParameters.setEndpointIdentificationAlgorithm("HTTPS");
delegate.setSSLParameters(sslParameters);
}
} }
 End of changes. 3 change blocks. 
0 lines changed or deleted 12 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)