1
2
3
4
5
6
7
8
9
10
11
12
13
14 package ch.qos.logback.core.net.ssl;
15
16 import javax.net.ssl.SSLServerSocket;
17
18
19
20
21
22
23
24 public class SSLConfigurableServerSocket implements SSLConfigurable {
25
26 private final SSLServerSocket delegate;
27
28 public SSLConfigurableServerSocket(SSLServerSocket delegate) {
29 this.delegate = delegate;
30 }
31
32 public String[] getDefaultProtocols() {
33 return delegate.getEnabledProtocols();
34 }
35
36 public String[] getSupportedProtocols() {
37 return delegate.getSupportedProtocols();
38 }
39
40 public void setEnabledProtocols(String[] protocols) {
41 delegate.setEnabledProtocols(protocols);
42 }
43
44 public String[] getDefaultCipherSuites() {
45 return delegate.getEnabledCipherSuites();
46 }
47
48 public String[] getSupportedCipherSuites() {
49 return delegate.getSupportedCipherSuites();
50 }
51
52 public void setEnabledCipherSuites(String[] suites) {
53 delegate.setEnabledCipherSuites(suites);
54 }
55
56 public void setNeedClientAuth(boolean state) {
57 delegate.setNeedClientAuth(state);
58 }
59
60 public void setWantClientAuth(boolean state) {
61 delegate.setWantClientAuth(state);
62 }
63
64 @Override
65 public void setHostnameVerification(boolean verifyHostname) {
66
67 }
68
69 }