Class SslContextProviderSupplier

java.lang.Object
io.grpc.xds.internal.security.SslContextProviderSupplier
All Implemented Interfaces:
Closeable, Closeable, AutoCloseable

public final class SslContextProviderSupplier extends Object implements Closeable
Enables Client or server side to initialize this object with the received EnvoyServerProtoData.BaseTlsContext and communicate it to the consumer i.e. SecurityProtocolNegotiators to lazily evaluate the SslContextProvider. The supplier prevents credentials leakage in cases where the user is not using xDS credentials but the client/server contains a non-default EnvoyServerProtoData.BaseTlsContext.