Interface PlatformSslContextProvider

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@Beta @FunctionalInterface public interface PlatformSslContextProvider
Creates an SslContext based on properties of the platform.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.vavr.control.Try<SSLContext>
    Try to create an SSLContext based on an identity provided by the platform.
  • Method Details

    • tryGetContext

      @Nonnull io.vavr.control.Try<SSLContext> tryGetContext()
      Try to create an SSLContext based on an identity provided by the platform. For example, the platform may provide X509 certificates in environment variables or on the file system.
      Returns:
      A Try containing either the derived SSL context or a failure.