Public Types | Public Member Functions | Private Attributes | List of all members
grpc_core::IpAuthorizationMatcher Class Reference

#include <matchers.h>

Inheritance diagram for grpc_core::IpAuthorizationMatcher:
Inheritance graph
[legend]

Public Types

enum  Type { Type::kDestIp, Type::kSourceIp, Type::kDirectRemoteIp, Type::kRemoteIp }
 

Public Member Functions

 IpAuthorizationMatcher (Type type, Rbac::CidrRange range)
 
bool Matches (const EvaluateArgs &args) const override
 
- Public Member Functions inherited from grpc_core::AuthorizationMatcher
virtual ~AuthorizationMatcher ()=default
 

Private Attributes

const uint32_t prefix_len_
 
grpc_resolved_address subnet_address_
 
const Type type_
 

Additional Inherited Members

- Static Public Member Functions inherited from grpc_core::AuthorizationMatcher
static std::unique_ptr< AuthorizationMatcherCreate (Rbac::Permission permission)
 
static std::unique_ptr< AuthorizationMatcherCreate (Rbac::Principal principal)
 

Detailed Description

Definition at line 128 of file security/authorization/matchers.h.

Member Enumeration Documentation

◆ Type

Enumerator
kDestIp 
kSourceIp 
kDirectRemoteIp 
kRemoteIp 

Definition at line 130 of file security/authorization/matchers.h.

Constructor & Destructor Documentation

◆ IpAuthorizationMatcher()

grpc_core::IpAuthorizationMatcher::IpAuthorizationMatcher ( Type  type,
Rbac::CidrRange  range 
)

Definition at line 151 of file security/authorization/matchers.cc.

Member Function Documentation

◆ Matches()

bool grpc_core::IpAuthorizationMatcher::Matches ( const EvaluateArgs args) const
overridevirtual

Member Data Documentation

◆ prefix_len_

const uint32_t grpc_core::IpAuthorizationMatcher::prefix_len_
private

Definition at line 145 of file security/authorization/matchers.h.

◆ subnet_address_

grpc_resolved_address grpc_core::IpAuthorizationMatcher::subnet_address_
private

Definition at line 144 of file security/authorization/matchers.h.

◆ type_

const Type grpc_core::IpAuthorizationMatcher::type_
private

Definition at line 142 of file security/authorization/matchers.h.


The documentation for this class was generated from the following files:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:36