Interface JwtAuthenticationOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
JwtAuthentication, JwtAuthentication.Builder

public interface JwtAuthenticationOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Map of provider names to JwtProviders. .. code-block:: yaml providers: provider1: issuer: issuer1 audiences: - audience1 - audience2 remote_jwks: http_uri: uri: https://example.com/.well-known/jwks.json cluster: example_jwks_cluster provider2: issuer: provider2 local_jwks: inline_string: jwks_string
    boolean
    When set to true, bypass the `CORS preflight request <http://www.w3.org/TR/cors/#cross-origin-request-with-preflight>`_ regardless of JWT requirements specified in the rules.
    This message specifies Jwt requirements based on stream_info.filterState.
    This message specifies Jwt requirements based on stream_info.filterState.
    Deprecated.
    int
    Map of provider names to JwtProviders. .. code-block:: yaml providers: provider1: issuer: issuer1 audiences: - audience1 - audience2 remote_jwks: http_uri: uri: https://example.com/.well-known/jwks.json cluster: example_jwks_cluster provider2: issuer: provider2 local_jwks: inline_string: jwks_string
    Map of provider names to JwtProviders. .. code-block:: yaml providers: provider1: issuer: issuer1 audiences: - audience1 - audience2 remote_jwks: http_uri: uri: https://example.com/.well-known/jwks.json cluster: example_jwks_cluster provider2: issuer: provider2 local_jwks: inline_string: jwks_string
    Map of provider names to JwtProviders. .. code-block:: yaml providers: provider1: issuer: issuer1 audiences: - audience1 - audience2 remote_jwks: http_uri: uri: https://example.com/.well-known/jwks.json cluster: example_jwks_cluster provider2: issuer: provider2 local_jwks: inline_string: jwks_string
    Map of provider names to JwtProviders. .. code-block:: yaml providers: provider1: issuer: issuer1 audiences: - audience1 - audience2 remote_jwks: http_uri: uri: https://example.com/.well-known/jwks.json cluster: example_jwks_cluster provider2: issuer: provider2 local_jwks: inline_string: jwks_string
    getRules(int index)
    Specifies requirements based on the route matches.
    int
    Specifies requirements based on the route matches.
    Specifies requirements based on the route matches.
    getRulesOrBuilder(int index)
    Specifies requirements based on the route matches.
    Specifies requirements based on the route matches.
    boolean
    This message specifies Jwt requirements based on stream_info.filterState.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getProvidersCount

      int getProvidersCount()
       Map of provider names to JwtProviders.
      
       .. code-block:: yaml
      
         providers:
           provider1:
              issuer: issuer1
              audiences:
              - audience1
              - audience2
              remote_jwks:
                http_uri:
                  uri: https://example.com/.well-known/jwks.json
                  cluster: example_jwks_cluster
            provider2:
              issuer: provider2
              local_jwks:
                inline_string: jwks_string
       
      map<string, .envoy.config.filter.http.jwt_authn.v2alpha.JwtProvider> providers = 1;
    • containsProviders

      boolean containsProviders(String key)
       Map of provider names to JwtProviders.
      
       .. code-block:: yaml
      
         providers:
           provider1:
              issuer: issuer1
              audiences:
              - audience1
              - audience2
              remote_jwks:
                http_uri:
                  uri: https://example.com/.well-known/jwks.json
                  cluster: example_jwks_cluster
            provider2:
              issuer: provider2
              local_jwks:
                inline_string: jwks_string
       
      map<string, .envoy.config.filter.http.jwt_authn.v2alpha.JwtProvider> providers = 1;
    • getProviders

      Deprecated.
      Use getProvidersMap() instead.
    • getProvidersMap

      Map<String,JwtProvider> getProvidersMap()
       Map of provider names to JwtProviders.
      
       .. code-block:: yaml
      
         providers:
           provider1:
              issuer: issuer1
              audiences:
              - audience1
              - audience2
              remote_jwks:
                http_uri:
                  uri: https://example.com/.well-known/jwks.json
                  cluster: example_jwks_cluster
            provider2:
              issuer: provider2
              local_jwks:
                inline_string: jwks_string
       
      map<string, .envoy.config.filter.http.jwt_authn.v2alpha.JwtProvider> providers = 1;
    • getProvidersOrDefault

      JwtProvider getProvidersOrDefault(String key, JwtProvider defaultValue)
       Map of provider names to JwtProviders.
      
       .. code-block:: yaml
      
         providers:
           provider1:
              issuer: issuer1
              audiences:
              - audience1
              - audience2
              remote_jwks:
                http_uri:
                  uri: https://example.com/.well-known/jwks.json
                  cluster: example_jwks_cluster
            provider2:
              issuer: provider2
              local_jwks:
                inline_string: jwks_string
       
      map<string, .envoy.config.filter.http.jwt_authn.v2alpha.JwtProvider> providers = 1;
    • getProvidersOrThrow

      JwtProvider getProvidersOrThrow(String key)
       Map of provider names to JwtProviders.
      
       .. code-block:: yaml
      
         providers:
           provider1:
              issuer: issuer1
              audiences:
              - audience1
              - audience2
              remote_jwks:
                http_uri:
                  uri: https://example.com/.well-known/jwks.json
                  cluster: example_jwks_cluster
            provider2:
              issuer: provider2
              local_jwks:
                inline_string: jwks_string
       
      map<string, .envoy.config.filter.http.jwt_authn.v2alpha.JwtProvider> providers = 1;
    • getRulesList

      List<RequirementRule> getRulesList()
       Specifies requirements based on the route matches. The first matched requirement will be
       applied. If there are overlapped match conditions, please put the most specific match first.
      
       Examples
      
       .. code-block:: yaml
      
         rules:
           - match:
               prefix: /healthz
           - match:
               prefix: /baz
             requires:
               provider_name: provider1
           - match:
               prefix: /foo
             requires:
               requires_any:
                 requirements:
                   - provider_name: provider1
                   - provider_name: provider2
           - match:
               prefix: /bar
             requires:
               requires_all:
                 requirements:
                   - provider_name: provider1
                   - provider_name: provider2
       
      repeated .envoy.config.filter.http.jwt_authn.v2alpha.RequirementRule rules = 2;
    • getRules

      RequirementRule getRules(int index)
       Specifies requirements based on the route matches. The first matched requirement will be
       applied. If there are overlapped match conditions, please put the most specific match first.
      
       Examples
      
       .. code-block:: yaml
      
         rules:
           - match:
               prefix: /healthz
           - match:
               prefix: /baz
             requires:
               provider_name: provider1
           - match:
               prefix: /foo
             requires:
               requires_any:
                 requirements:
                   - provider_name: provider1
                   - provider_name: provider2
           - match:
               prefix: /bar
             requires:
               requires_all:
                 requirements:
                   - provider_name: provider1
                   - provider_name: provider2
       
      repeated .envoy.config.filter.http.jwt_authn.v2alpha.RequirementRule rules = 2;
    • getRulesCount

      int getRulesCount()
       Specifies requirements based on the route matches. The first matched requirement will be
       applied. If there are overlapped match conditions, please put the most specific match first.
      
       Examples
      
       .. code-block:: yaml
      
         rules:
           - match:
               prefix: /healthz
           - match:
               prefix: /baz
             requires:
               provider_name: provider1
           - match:
               prefix: /foo
             requires:
               requires_any:
                 requirements:
                   - provider_name: provider1
                   - provider_name: provider2
           - match:
               prefix: /bar
             requires:
               requires_all:
                 requirements:
                   - provider_name: provider1
                   - provider_name: provider2
       
      repeated .envoy.config.filter.http.jwt_authn.v2alpha.RequirementRule rules = 2;
    • getRulesOrBuilderList

      List<? extends RequirementRuleOrBuilder> getRulesOrBuilderList()
       Specifies requirements based on the route matches. The first matched requirement will be
       applied. If there are overlapped match conditions, please put the most specific match first.
      
       Examples
      
       .. code-block:: yaml
      
         rules:
           - match:
               prefix: /healthz
           - match:
               prefix: /baz
             requires:
               provider_name: provider1
           - match:
               prefix: /foo
             requires:
               requires_any:
                 requirements:
                   - provider_name: provider1
                   - provider_name: provider2
           - match:
               prefix: /bar
             requires:
               requires_all:
                 requirements:
                   - provider_name: provider1
                   - provider_name: provider2
       
      repeated .envoy.config.filter.http.jwt_authn.v2alpha.RequirementRule rules = 2;
    • getRulesOrBuilder

      RequirementRuleOrBuilder getRulesOrBuilder(int index)
       Specifies requirements based on the route matches. The first matched requirement will be
       applied. If there are overlapped match conditions, please put the most specific match first.
      
       Examples
      
       .. code-block:: yaml
      
         rules:
           - match:
               prefix: /healthz
           - match:
               prefix: /baz
             requires:
               provider_name: provider1
           - match:
               prefix: /foo
             requires:
               requires_any:
                 requirements:
                   - provider_name: provider1
                   - provider_name: provider2
           - match:
               prefix: /bar
             requires:
               requires_all:
                 requirements:
                   - provider_name: provider1
                   - provider_name: provider2
       
      repeated .envoy.config.filter.http.jwt_authn.v2alpha.RequirementRule rules = 2;
    • hasFilterStateRules

      boolean hasFilterStateRules()
       This message specifies Jwt requirements based on stream_info.filterState.
       Other HTTP filters can use it to specify Jwt requirements dynamically.
       The *rules* field above is checked first, if it could not find any matches,
       check this one.
       
      .envoy.config.filter.http.jwt_authn.v2alpha.FilterStateRule filter_state_rules = 3;
      Returns:
      Whether the filterStateRules field is set.
    • getFilterStateRules

      FilterStateRule getFilterStateRules()
       This message specifies Jwt requirements based on stream_info.filterState.
       Other HTTP filters can use it to specify Jwt requirements dynamically.
       The *rules* field above is checked first, if it could not find any matches,
       check this one.
       
      .envoy.config.filter.http.jwt_authn.v2alpha.FilterStateRule filter_state_rules = 3;
      Returns:
      The filterStateRules.
    • getFilterStateRulesOrBuilder

      FilterStateRuleOrBuilder getFilterStateRulesOrBuilder()
       This message specifies Jwt requirements based on stream_info.filterState.
       Other HTTP filters can use it to specify Jwt requirements dynamically.
       The *rules* field above is checked first, if it could not find any matches,
       check this one.
       
      .envoy.config.filter.http.jwt_authn.v2alpha.FilterStateRule filter_state_rules = 3;
    • getBypassCorsPreflight

      boolean getBypassCorsPreflight()
       When set to true, bypass the `CORS preflight request
       <http://www.w3.org/TR/cors/#cross-origin-request-with-preflight>`_ regardless of JWT
       requirements specified in the rules.
       
      bool bypass_cors_preflight = 4;
      Returns:
      The bypassCorsPreflight.