001/**
002 * Logback: the reliable, generic, fast and flexible logging framework.
003 * Copyright (C) 1999-2015, QOS.ch. All rights reserved.
004 *
005 * This program and the accompanying materials are dual-licensed under
006 * either the terms of the Eclipse Public License v1.0 as published by
007 * the Eclipse Foundation
008 *
009 *   or (per the licensee's choosing)
010 *
011 * under the terms of the GNU Lesser General Public License version 2.1
012 * as published by the Free Software Foundation.
013 */
014package ch.qos.logback.core.net.ssl.mock;
015
016import ch.qos.logback.core.net.ssl.SSLConfigurable;
017
018public class MockSSLConfigurable implements SSLConfigurable {
019
020    private static final String[] EMPTY = new String[0];
021
022    private String[] defaultProtocols = EMPTY;
023    private String[] supportedProtocols = EMPTY;
024    private String[] enabledProtocols = EMPTY;
025    private String[] defaultCipherSuites = EMPTY;
026    private String[] supportedCipherSuites = EMPTY;
027    private String[] enabledCipherSuites = EMPTY;
028    private boolean needClientAuth;
029    private boolean wantClientAuth;
030
031    public String[] getDefaultProtocols() {
032        return defaultProtocols;
033    }
034
035    public void setDefaultProtocols(String[] defaultProtocols) {
036        this.defaultProtocols = defaultProtocols;
037    }
038
039    public String[] getSupportedProtocols() {
040        return supportedProtocols;
041    }
042
043    public void setSupportedProtocols(String[] supportedProtocols) {
044        this.supportedProtocols = supportedProtocols;
045    }
046
047    public String[] getEnabledProtocols() {
048        return enabledProtocols;
049    }
050
051    public void setEnabledProtocols(String[] enabledProtocols) {
052        this.enabledProtocols = enabledProtocols;
053    }
054
055    public String[] getDefaultCipherSuites() {
056        return defaultCipherSuites;
057    }
058
059    public void setDefaultCipherSuites(String[] defaultCipherSuites) {
060        this.defaultCipherSuites = defaultCipherSuites;
061    }
062
063    public String[] getSupportedCipherSuites() {
064        return supportedCipherSuites;
065    }
066
067    public void setSupportedCipherSuites(String[] supportedCipherSuites) {
068        this.supportedCipherSuites = supportedCipherSuites;
069    }
070
071    public String[] getEnabledCipherSuites() {
072        return enabledCipherSuites;
073    }
074
075    public void setEnabledCipherSuites(String[] enabledCipherSuites) {
076        this.enabledCipherSuites = enabledCipherSuites;
077    }
078
079    public boolean isNeedClientAuth() {
080        return needClientAuth;
081    }
082
083    public void setNeedClientAuth(boolean needClientAuth) {
084        this.needClientAuth = needClientAuth;
085    }
086
087    public boolean isWantClientAuth() {
088        return wantClientAuth;
089    }
090
091    public void setWantClientAuth(boolean wantClientAuth) {
092        this.wantClientAuth = wantClientAuth;
093    }
094
095}