grpc-java
grpc-java copied to clipboard
[xDS] A65 mTLS credentials in bootstrap (part1)
implementing gRFC A65 proposal/pull/372.
This change contains:
- New aggregate
ResourceAllocatingChannelCredentialsclass that holds aChannelCredentialsinstance and associated list ofCloseableobjects representing resources allocated during givenChannelCredentialsinstantiation. Its main purpose is to maintain resource handles and allow the client class to release them when they are no longer needed. - Postponed
ChannelCredentialsinstantiation. Now the lifetime ofChannelCredentialsobject is bounded to theGrpcXdsTransportinstance. When the transport layer is no longer needed we can safely release any resources allocated duringChannelCredentialscreation.