1
2
3
4
5
6
7
8
9
10
11
12
13
14 package ch.qos.logback.core.net.ssl.mock;
15
16 import ch.qos.logback.core.net.ssl.SSLConfigurable;
17
18 public class MockSSLConfigurable implements SSLConfigurable {
19
20 private static final String[] EMPTY = new String[0];
21
22 private String[] defaultProtocols = EMPTY;
23 private String[] supportedProtocols = EMPTY;
24 private String[] enabledProtocols = EMPTY;
25 private String[] defaultCipherSuites = EMPTY;
26 private String[] supportedCipherSuites = EMPTY;
27 private String[] enabledCipherSuites = EMPTY;
28 private boolean needClientAuth;
29 private boolean wantClientAuth;
30
31 public String[] getDefaultProtocols() {
32 return defaultProtocols;
33 }
34
35 public void setDefaultProtocols(String[] defaultProtocols) {
36 this.defaultProtocols = defaultProtocols;
37 }
38
39 public String[] getSupportedProtocols() {
40 return supportedProtocols;
41 }
42
43 public void setSupportedProtocols(String[] supportedProtocols) {
44 this.supportedProtocols = supportedProtocols;
45 }
46
47 public String[] getEnabledProtocols() {
48 return enabledProtocols;
49 }
50
51 public void setEnabledProtocols(String[] enabledProtocols) {
52 this.enabledProtocols = enabledProtocols;
53 }
54
55 public String[] getDefaultCipherSuites() {
56 return defaultCipherSuites;
57 }
58
59 public void setDefaultCipherSuites(String[] defaultCipherSuites) {
60 this.defaultCipherSuites = defaultCipherSuites;
61 }
62
63 public String[] getSupportedCipherSuites() {
64 return supportedCipherSuites;
65 }
66
67 public void setSupportedCipherSuites(String[] supportedCipherSuites) {
68 this.supportedCipherSuites = supportedCipherSuites;
69 }
70
71 public String[] getEnabledCipherSuites() {
72 return enabledCipherSuites;
73 }
74
75 public void setEnabledCipherSuites(String[] enabledCipherSuites) {
76 this.enabledCipherSuites = enabledCipherSuites;
77 }
78
79 public boolean isNeedClientAuth() {
80 return needClientAuth;
81 }
82
83 public void setNeedClientAuth(boolean needClientAuth) {
84 this.needClientAuth = needClientAuth;
85 }
86
87 public boolean isWantClientAuth() {
88 return wantClientAuth;
89 }
90
91 public void setWantClientAuth(boolean wantClientAuth) {
92 this.wantClientAuth = wantClientAuth;
93 }
94
95 @Override
96 public void setHostnameVerification(boolean verifyHostname) {
97 }
98
99 }