Class TlsConfigurationImpl
- java.lang.Object
-
- org.opendaylight.openflowjava.protocol.api.connection.TlsConfigurationImpl
-
- All Implemented Interfaces:
TlsConfiguration
public class TlsConfigurationImpl extends Object implements TlsConfiguration
Class is used only for testing purposes - passwords are hard-coded.- Author:
- michal.polkorab
-
-
Constructor Summary
Constructors Constructor Description TlsConfigurationImpl(KeystoreType trustStoreType, String trustStore, PathType trustStorePathType, KeystoreType keyStoreType, String keyStore, PathType keyStorePathType, List<String> cipherSuites)Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCertificatePassword()Returns the password protecting the certificate.List<String>getCipherSuites()Returns the list of cipher suites for TLS connection.StringgetKeystorePassword()Returns the password protecting the key store.StringgetTlsKeystore()Returns the key store location.PathTypegetTlsKeystorePathType()Returns the key store path type.KeystoreTypegetTlsKeystoreType()Returns the key store type.StringgetTlsTruststore()Returns the trust store location.PathTypegetTlsTruststorePathType()Returns the trust store path type.KeystoreTypegetTlsTruststoreType()Returns the trust store type.StringgetTruststorePassword()Returns the password protecting the trust store.
-
-
-
Constructor Detail
-
TlsConfigurationImpl
public TlsConfigurationImpl(KeystoreType trustStoreType, String trustStore, PathType trustStorePathType, KeystoreType keyStoreType, String keyStore, PathType keyStorePathType, List<String> cipherSuites)
Default constructor.- Parameters:
trustStoreType- JKS or PKCS12trustStore- path to trustStore filetrustStorePathType- truststore path type (classpath or path)keyStoreType- JKS or PKCS12keyStore- path to keyStore filekeyStorePathType- keystore path type (classpath or path)
-
-
Method Detail
-
getTlsTruststoreType
public KeystoreType getTlsTruststoreType()
Description copied from interface:TlsConfigurationReturns the trust store type.- Specified by:
getTlsTruststoreTypein interfaceTlsConfiguration- Returns:
- trust store type
-
getTlsTruststore
public String getTlsTruststore()
Description copied from interface:TlsConfigurationReturns the trust store location.- Specified by:
getTlsTruststorein interfaceTlsConfiguration- Returns:
- trust store location
-
getTlsKeystoreType
public KeystoreType getTlsKeystoreType()
Description copied from interface:TlsConfigurationReturns the key store type.- Specified by:
getTlsKeystoreTypein interfaceTlsConfiguration- Returns:
- key store type
-
getTlsKeystore
public String getTlsKeystore()
Description copied from interface:TlsConfigurationReturns the key store location.- Specified by:
getTlsKeystorein interfaceTlsConfiguration- Returns:
- key store location
-
getTlsKeystorePathType
public PathType getTlsKeystorePathType()
Description copied from interface:TlsConfigurationReturns the key store path type.- Specified by:
getTlsKeystorePathTypein interfaceTlsConfiguration- Returns:
- key store path type (CLASSPATH or PATH)
-
getTlsTruststorePathType
public PathType getTlsTruststorePathType()
Description copied from interface:TlsConfigurationReturns the trust store path type.- Specified by:
getTlsTruststorePathTypein interfaceTlsConfiguration- Returns:
- trust store path type (CLASSPATH or PATH)
-
getKeystorePassword
public String getKeystorePassword()
Description copied from interface:TlsConfigurationReturns the password protecting the key store.- Specified by:
getKeystorePasswordin interfaceTlsConfiguration- Returns:
- password protecting the specified key store
-
getCertificatePassword
public String getCertificatePassword()
Description copied from interface:TlsConfigurationReturns the password protecting the certificate.- Specified by:
getCertificatePasswordin interfaceTlsConfiguration- Returns:
- password protecting certificate
-
getTruststorePassword
public String getTruststorePassword()
Description copied from interface:TlsConfigurationReturns the password protecting the trust store.- Specified by:
getTruststorePasswordin interfaceTlsConfiguration- Returns:
- password protecting specified trust store
-
getCipherSuites
public List<String> getCipherSuites()
Description copied from interface:TlsConfigurationReturns the list of cipher suites for TLS connection.- Specified by:
getCipherSuitesin interfaceTlsConfiguration- Returns:
- list of cipher suites for TLS connection
-
-