View Javadoc
1   /**
2    * Logback: the reliable, generic, fast and flexible logging framework.
3    * Copyright (C) 1999-2015, QOS.ch. All rights reserved.
4    *
5    * This program and the accompanying materials are dual-licensed under
6    * either the terms of the Eclipse Public License v1.0 as published by
7    * the Eclipse Foundation
8    *
9    *   or (per the licensee's choosing)
10   *
11   * under the terms of the GNU Lesser General Public License version 2.1
12   * as published by the Free Software Foundation.
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  }