/*
 * Copyright 2019 The gRPC Authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package io.grpc.xds;

import io.envoyproxy.envoy.api.v2.auth.SdsSecretConfig;
import io.grpc.Attributes;
import io.grpc.Grpc;

/**
 * Special attributes that are only useful to gRPC in the XDS context.
 */
final class XdsAttributes {
  /**
   * Attribute key for SdsSecretConfig of a subchannel.
   *
   */
  @Grpc.TransportAttr
  public static final Attributes.Key<SdsSecretConfig> ATTR_SDS_CONFIG =
          Attributes.Key.create("io.grpc.xds.XdsAttributes.sdsSecretConfig");

  private XdsAttributes() {}
}

@@ -655,31 +655,155 @@
 v2.auth.
-SdsSecretConfig
+CertificateValidationContext;%0Aimport io.envoyproxy.envoy.api.v2.auth.SdsSecretConfig;%0Aimport io.envoyproxy.envoy.api.v2.auth.TlsCertificate
 ;%0Aimport
@@ -1018,13 +1018,8 @@
 el.%0A
-   *%0A
    *
@@ -1114,16 +1114,16 @@
 ONFIG =%0A
-
         
@@ -1193,16 +1193,552 @@
 fig%22);%0A%0A
+  /**%0A   * Attribute key for TlsCertificate of a subchannel.%0A   */%0A  @Grpc.TransportAttr%0A  public static final Attributes.Key%3CTlsCertificate%3E ATTR_TLS_CERTIFICATE =%0A          Attributes.Key.create(%22io.grpc.xds.XdsAttributes.tlsCertificate%22);%0A%0A  /**%0A   * Attribute key for CertificateValidationContext of a subchannel.%0A   */%0A  @Grpc.TransportAttr%0A  public static final Attributes.Key%3CCertificateValidationContext%3E ATTR_CERT_VALIDATION_CONTEXT =%0A          Attributes.Key.create(%22io.grpc.xds.XdsAttributes.certificateValidationContext%22);%0A%0A
   privat

Add tlsCertificate and certificateValidationContext attributes to XdsAttributes: needed for passing those values to the SDS component