Class TlsConfig

java.lang.Object
com.linecorp.centraldogma.server.TlsConfig

public final class TlsConfig extends Object
TLS configuration.
  • Constructor Details

    • TlsConfig

      public TlsConfig(@Nullable File keyCertChainFile, @Nullable File keyFile, @Nullable String keyCertChain, @Nullable String key, @Nullable String keyPassword)
      Creates an instance with the specified keyCertChainFilePath, keyFilePath and keyPassword.
  • Method Details

    • keyCertChainFile

      @Nullable @Deprecated public File keyCertChainFile()
      Deprecated.
      Returns a certificates file which is created with the given keyCertChainFilePath.
    • keyFile

      @Nullable @Deprecated public File keyFile()
      Deprecated.
      Returns a private key file which is created with the given keyFilePath.
    • keyCertChainInputStream

      @MustBeClosed public InputStream keyCertChainInputStream()
      Returns an InputStream of the certificate chain.
    • keyInputStream

      @MustBeClosed public InputStream keyInputStream()
      Returns an InputStream of the private key.
    • keyPassword

      @Nullable public String keyPassword()
      Returns a password for the private key file. Return null if no password is set.
    • toString

      public String toString()
      Overrides:
      toString in class Object