Class TlsConfigurationImpl
java.lang.Object
org.opendaylight.openflowjava.protocol.api.connection.TlsConfigurationImpl
- All Implemented Interfaces:
TlsConfiguration
Class is used only for testing purposes - passwords are hard-coded.
- Author:
- michal.polkorab
-
Constructor Summary
ConstructorDescriptionTlsConfigurationImpl
(KeystoreType trustStoreType, String trustStore, PathType trustStorePathType, KeystoreType keyStoreType, String keyStore, PathType keyStorePathType, List<String> cipherSuites) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the password protecting the certificate.Returns the list of cipher suites for TLS connection.Returns the password protecting the key store.Returns the key store location.Returns the key store path type.Returns the key store type.Returns the trust store location.Returns the trust store path type.Returns the trust store type.Returns the password protecting the trust store.
-
Constructor Details
-
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 Details
-
getTlsTruststoreType
Description copied from interface:TlsConfiguration
Returns the trust store type.- Specified by:
getTlsTruststoreType
in interfaceTlsConfiguration
- Returns:
- trust store type
-
getTlsTruststore
Description copied from interface:TlsConfiguration
Returns the trust store location.- Specified by:
getTlsTruststore
in interfaceTlsConfiguration
- Returns:
- trust store location
-
getTlsKeystoreType
Description copied from interface:TlsConfiguration
Returns the key store type.- Specified by:
getTlsKeystoreType
in interfaceTlsConfiguration
- Returns:
- key store type
-
getTlsKeystore
Description copied from interface:TlsConfiguration
Returns the key store location.- Specified by:
getTlsKeystore
in interfaceTlsConfiguration
- Returns:
- key store location
-
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
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
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
Description copied from interface:TlsConfiguration
Returns the password protecting the certificate.- Specified by:
getCertificatePassword
in interfaceTlsConfiguration
- Returns:
- password protecting certificate
-
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
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
-