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 TypeMethodDescriptionbooleancontainsProviders(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_stringbooleanWhen 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.intMap 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_stringMap 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_stringgetProvidersOrDefault(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_stringMap 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_stringgetRules(int index) Specifies requirements based on the route matches.intSpecifies requirements based on the route matches.Specifies requirements based on the route matches.getRulesOrBuilder(int index) Specifies requirements based on the route matches.List<? extends RequirementRuleOrBuilder>Specifies requirements based on the route matches.booleanThis message specifies Jwt requirements based on stream_info.filterState.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods 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_stringmap<string, .envoy.config.filter.http.jwt_authn.v2alpha.JwtProvider> providers = 1; -
containsProviders
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_stringmap<string, .envoy.config.filter.http.jwt_authn.v2alpha.JwtProvider> providers = 1; -
getProviders
Deprecated.UsegetProvidersMap()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_stringmap<string, .envoy.config.filter.http.jwt_authn.v2alpha.JwtProvider> providers = 1; -
getProvidersOrDefault
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_stringmap<string, .envoy.config.filter.http.jwt_authn.v2alpha.JwtProvider> providers = 1; -
getProvidersOrThrow
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_stringmap<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: provider2repeated .envoy.config.filter.http.jwt_authn.v2alpha.RequirementRule rules = 2; -
getRules
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: provider2repeated .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: provider2repeated .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: provider2repeated .envoy.config.filter.http.jwt_authn.v2alpha.RequirementRule rules = 2; -
getRulesOrBuilder
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: provider2repeated .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.
-