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 String
getCertificatePassword()
Returns the password protecting the certificate.List<String>
getCipherSuites()
Returns the list of cipher suites for TLS connection.String
getKeystorePassword()
Returns the password protecting the key store.String
getTlsKeystore()
Returns the key store location.PathType
getTlsKeystorePathType()
Returns the key store path type.KeystoreType
getTlsKeystoreType()
Returns the key store type.String
getTlsTruststore()
Returns the trust store location.PathType
getTlsTruststorePathType()
Returns the trust store path type.KeystoreType
getTlsTruststoreType()
Returns the trust store type.String
getTruststorePassword()
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:TlsConfiguration
Returns the trust store type.- Specified by:
getTlsTruststoreType
in interfaceTlsConfiguration
- Returns:
- trust store type
-
getTlsTruststore
public String getTlsTruststore()
Description copied from interface:TlsConfiguration
Returns the trust store location.- Specified by:
getTlsTruststore
in interfaceTlsConfiguration
- Returns:
- trust store location
-
getTlsKeystoreType
public KeystoreType getTlsKeystoreType()
Description copied from interface:TlsConfiguration
Returns the key store type.- Specified by:
getTlsKeystoreType
in interfaceTlsConfiguration
- Returns:
- key store type
-
getTlsKeystore
public String getTlsKeystore()
Description copied from interface:TlsConfiguration
Returns the key store location.- Specified by:
getTlsKeystore
in interfaceTlsConfiguration
- Returns:
- key store location
-
getTlsKeystorePathType
public PathType getTlsKeystorePathType()
Description copied from interface:TlsConfiguration
Returns the key store path type.- Specified by:
getTlsKeystorePathType
in interfaceTlsConfiguration
- Returns:
- key store path type (CLASSPATH or PATH)
-
getTlsTruststorePathType
public PathType getTlsTruststorePathType()
Description copied from interface:TlsConfiguration
Returns the trust store path type.- Specified by:
getTlsTruststorePathType
in interfaceTlsConfiguration
- Returns:
- trust store path type (CLASSPATH or PATH)
-
getKeystorePassword
public String getKeystorePassword()
Description copied from interface:TlsConfiguration
Returns the password protecting the key store.- Specified by:
getKeystorePassword
in interfaceTlsConfiguration
- Returns:
- password protecting the specified key store
-
getCertificatePassword
public String getCertificatePassword()
Description copied from interface:TlsConfiguration
Returns the password protecting the certificate.- Specified by:
getCertificatePassword
in interfaceTlsConfiguration
- Returns:
- password protecting certificate
-
getTruststorePassword
public String getTruststorePassword()
Description copied from interface:TlsConfiguration
Returns the password protecting the trust store.- Specified by:
getTruststorePassword
in interfaceTlsConfiguration
- Returns:
- password protecting specified trust store
-
getCipherSuites
public List<String> getCipherSuites()
Description copied from interface:TlsConfiguration
Returns the list of cipher suites for TLS connection.- Specified by:
getCipherSuites
in interfaceTlsConfiguration
- Returns:
- list of cipher suites for TLS connection
-
-