chromium/third_party/grpc/src/src/core/lib/security/authorization/evaluate_args.cc

// Copyright 2021 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.

#include <grpc/support/port_platform.h>

#include "src/core/lib/security/authorization/evaluate_args.h"

#include <string.h>

#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/match.h"
#include "absl/strings/numbers.h"

#include <grpc/grpc_security_constants.h>
#include <grpc/support/log.h>

#include "src/core/lib/address_utils/parse_address.h"
#include "src/core/lib/gprpp/host_port.h"
#include "src/core/lib/security/credentials/tls/tls_utils.h"
#include "src/core/lib/slice/slice.h"
#include "src/core/lib/uri/uri_parser.h"

namespace grpc_core {

namespace {

EvaluateArgs::PerChannelArgs::Address ParseEndpointUri(
    absl::string_view uri_text) {}

}  // namespace

EvaluateArgs::PerChannelArgs::PerChannelArgs(grpc_auth_context* auth_context,
                                             grpc_endpoint* endpoint) {}

absl::string_view EvaluateArgs::GetPath() const {}

absl::string_view EvaluateArgs::GetAuthority() const {}

absl::string_view EvaluateArgs::GetMethod() const {}

absl::optional<absl::string_view> EvaluateArgs::GetHeaderValue(
    absl::string_view key, std::string* concatenated_value) const {}

grpc_resolved_address EvaluateArgs::GetLocalAddress() const {}

absl::string_view EvaluateArgs::GetLocalAddressString() const {}

int EvaluateArgs::GetLocalPort() const {}

grpc_resolved_address EvaluateArgs::GetPeerAddress() const {}

absl::string_view EvaluateArgs::GetPeerAddressString() const {}

int EvaluateArgs::GetPeerPort() const {}

absl::string_view EvaluateArgs::GetTransportSecurityType() const {}

absl::string_view EvaluateArgs::GetSpiffeId() const {}

std::vector<absl::string_view> EvaluateArgs::GetUriSans() const {}

std::vector<absl::string_view> EvaluateArgs::GetDnsSans() const {}

absl::string_view EvaluateArgs::GetCommonName() const {}

absl::string_view EvaluateArgs::GetSubject() const {}

}  // namespace grpc_core