Class SslContextProviderSupplier
java.lang.Object
io.grpc.xds.internal.security.SslContextProviderSupplier
- All Implemented Interfaces:
Closeable, Closeable, AutoCloseable
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.-
Constructor Summary
ConstructorsConstructorDescriptionSslContextProviderSupplier(EnvoyServerProtoData.BaseTlsContext tlsContext, TlsContextManager tlsContextManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Called by consumer when tlsContext changes.booleaninthashCode()booleantoString()voidupdateSslContext(SslContextProvider.Callback callback) Updates SslContext via the passed callback.
-
Constructor Details
-
SslContextProviderSupplier
public SslContextProviderSupplier(EnvoyServerProtoData.BaseTlsContext tlsContext, TlsContextManager tlsContextManager)
-
-
Method Details
-
getTlsContext
-
updateSslContext
Updates SslContext via the passed callback. -
isShutdown
public boolean isShutdown() -
close
-
equals
-
hashCode
-
toString
-