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 SummaryConstructors Constructor Description TlsConfigurationImpl(KeystoreType trustStoreType, String trustStore, PathType trustStorePathType, KeystoreType keyStoreType, String keyStore, PathType keyStorePathType, List<String> cipherSuites)Default constructor.
 - 
Method SummaryAll 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- 
TlsConfigurationImplpublic TlsConfigurationImpl(KeystoreType trustStoreType, String trustStore, PathType trustStorePathType, KeystoreType keyStoreType, String keyStore, PathType keyStorePathType, List<String> cipherSuites) Default constructor.- Parameters:
- trustStoreType- JKS or PKCS12
- trustStore- path to trustStore file
- trustStorePathType- truststore path type (classpath or path)
- keyStoreType- JKS or PKCS12
- keyStore- path to keyStore file
- keyStorePathType- keystore path type (classpath or path)
 
 
- 
 - 
Method Detail- 
getTlsTruststoreTypepublic KeystoreType getTlsTruststoreType() Description copied from interface:TlsConfigurationReturns the trust store type.- Specified by:
- getTlsTruststoreTypein interface- TlsConfiguration
- Returns:
- trust store type
 
 - 
getTlsTruststorepublic String getTlsTruststore() Description copied from interface:TlsConfigurationReturns the trust store location.- Specified by:
- getTlsTruststorein interface- TlsConfiguration
- Returns:
- trust store location
 
 - 
getTlsKeystoreTypepublic KeystoreType getTlsKeystoreType() Description copied from interface:TlsConfigurationReturns the key store type.- Specified by:
- getTlsKeystoreTypein interface- TlsConfiguration
- Returns:
- key store type
 
 - 
getTlsKeystorepublic String getTlsKeystore() Description copied from interface:TlsConfigurationReturns the key store location.- Specified by:
- getTlsKeystorein interface- TlsConfiguration
- Returns:
- key store location
 
 - 
getTlsKeystorePathTypepublic PathType getTlsKeystorePathType() Description copied from interface:TlsConfigurationReturns the key store path type.- Specified by:
- getTlsKeystorePathTypein interface- TlsConfiguration
- Returns:
- key store path type (CLASSPATH or PATH)
 
 - 
getTlsTruststorePathTypepublic PathType getTlsTruststorePathType() Description copied from interface:TlsConfigurationReturns the trust store path type.- Specified by:
- getTlsTruststorePathTypein interface- TlsConfiguration
- Returns:
- trust store path type (CLASSPATH or PATH)
 
 - 
getKeystorePasswordpublic String getKeystorePassword() Description copied from interface:TlsConfigurationReturns the password protecting the key store.- Specified by:
- getKeystorePasswordin interface- TlsConfiguration
- Returns:
- password protecting the specified key store
 
 - 
getCertificatePasswordpublic String getCertificatePassword() Description copied from interface:TlsConfigurationReturns the password protecting the certificate.- Specified by:
- getCertificatePasswordin interface- TlsConfiguration
- Returns:
- password protecting certificate
 
 - 
getTruststorePasswordpublic String getTruststorePassword() Description copied from interface:TlsConfigurationReturns the password protecting the trust store.- Specified by:
- getTruststorePasswordin interface- TlsConfiguration
- Returns:
- password protecting specified trust store
 
 - 
getCipherSuitespublic List<String> getCipherSuites() Description copied from interface:TlsConfigurationReturns the list of cipher suites for TLS connection.- Specified by:
- getCipherSuitesin interface- TlsConfiguration
- Returns:
- list of cipher suites for TLS connection
 
 
- 
 
-