Bug 5377: Support configuring cipher suites to use for SSLEngine
[openflowjava.git] / openflow-protocol-api / src / main / java / org / opendaylight / openflowjava / protocol / api / connection / TlsConfiguration.java
1 /*
2  * Copyright (c) 2014 Pantheon Technologies s.r.o. and others. All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.openflowjava.protocol.api.connection;
10
11 import java.util.List;
12
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.config.rev140630.KeystoreType;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.config.rev140630.PathType;
15
16
17 /**
18  * @author michal.polkorab
19  *
20  */
21 public interface TlsConfiguration {
22
23     /**
24      * @return keystore location
25      */
26     String getTlsKeystore();
27
28     /**
29      * @return keystore type
30      */
31     KeystoreType getTlsKeystoreType();
32
33     /**
34      * @return truststore location
35      */
36     String getTlsTruststore();
37
38     /**
39      * @return truststore type
40      */
41     KeystoreType getTlsTruststoreType();
42
43     /**
44      * @return keystore path type (CLASSPATH or PATH)
45      */
46     PathType getTlsKeystorePathType();
47
48     /**
49      * @return truststore path type (CLASSPATH or PATH)
50      */
51     PathType getTlsTruststorePathType();
52
53     /**
54      * @return password protecting specified keystore
55      */
56     String getKeystorePassword();
57
58     /**
59      * @return password protecting certificate
60      */
61     String getCertificatePassword();
62
63     /**
64      * @return password protecting specified truststore
65      */
66     String getTruststorePassword();
67
68     /**
69      * @return list of cipher suites for TLS connection
70      */
71     List<String> getCipherSuites();
72 }