Class JwtAuthentication.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<JwtAuthentication.Builder>
-
- io.envoyproxy.envoy.extensions.filters.http.jwt_authn.v3.JwtAuthentication.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,JwtAuthenticationOrBuilder,Cloneable
- Enclosing class:
- JwtAuthentication
public static final class JwtAuthentication.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<JwtAuthentication.Builder> implements JwtAuthenticationOrBuilder
This is the Envoy HTTP filter config for JWT authentication. For example: .. 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 timeout: 1s provider2: issuer: issuer2 local_jwks: inline_string: jwks_string rules: # Not jwt verification is required for /health path - match: prefix: /health # Jwt verification for provider1 is required for path prefixed with "prefix" - match: prefix: /prefix requires: provider_name: provider1 # Jwt verification for either provider1 or provider2 is required for all other requests. - match: prefix: / requires: requires_any: requirements: - provider_name: provider1 - provider_name: provider2 [#next-free-field: 6]Protobuf typeenvoy.extensions.filters.http.jwt_authn.v3.JwtAuthentication
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description JwtAuthentication.BuilderaddAllRules(Iterable<? extends RequirementRule> values)Specifies requirements based on the route matches.JwtAuthentication.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)JwtAuthentication.BuilderaddRules(int index, RequirementRule value)Specifies requirements based on the route matches.JwtAuthentication.BuilderaddRules(int index, RequirementRule.Builder builderForValue)Specifies requirements based on the route matches.JwtAuthentication.BuilderaddRules(RequirementRule value)Specifies requirements based on the route matches.JwtAuthentication.BuilderaddRules(RequirementRule.Builder builderForValue)Specifies requirements based on the route matches.RequirementRule.BuilderaddRulesBuilder()Specifies requirements based on the route matches.RequirementRule.BuilderaddRulesBuilder(int index)Specifies requirements based on the route matches.JwtAuthenticationbuild()JwtAuthenticationbuildPartial()JwtAuthentication.Builderclear()JwtAuthentication.BuilderclearBypassCorsPreflight()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.JwtAuthentication.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)JwtAuthentication.BuilderclearFilterStateRules()This message specifies Jwt requirements based on stream_info.filterState.JwtAuthentication.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)JwtAuthentication.BuilderclearProviders()JwtAuthentication.BuilderclearRequirementMap()JwtAuthentication.BuilderclearRules()Specifies requirements based on the route matches.JwtAuthentication.Builderclone()booleancontainsProviders(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 timeout: 1s provider2: issuer: provider2 local_jwks: inline_string: jwks_stringbooleancontainsRequirementMap(String key)A map of unique requirement_names to JwtRequirements.booleangetBypassCorsPreflight()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.JwtAuthenticationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()FilterStateRulegetFilterStateRules()This message specifies Jwt requirements based on stream_info.filterState.FilterStateRule.BuildergetFilterStateRulesBuilder()This message specifies Jwt requirements based on stream_info.filterState.FilterStateRuleOrBuildergetFilterStateRulesOrBuilder()This message specifies Jwt requirements based on stream_info.filterState.Map<String,JwtProvider>getMutableProviders()Deprecated.Map<String,JwtRequirement>getMutableRequirementMap()Deprecated.Map<String,JwtProvider>getProviders()Deprecated.intgetProvidersCount()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 timeout: 1s provider2: issuer: provider2 local_jwks: inline_string: jwks_stringMap<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 timeout: 1s provider2: issuer: provider2 local_jwks: inline_string: jwks_stringJwtProvidergetProvidersOrDefault(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 timeout: 1s provider2: issuer: provider2 local_jwks: inline_string: jwks_stringJwtProvidergetProvidersOrThrow(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 timeout: 1s provider2: issuer: provider2 local_jwks: inline_string: jwks_stringMap<String,JwtRequirement>getRequirementMap()Deprecated.intgetRequirementMapCount()A map of unique requirement_names to JwtRequirements.Map<String,JwtRequirement>getRequirementMapMap()A map of unique requirement_names to JwtRequirements.JwtRequirementgetRequirementMapOrDefault(String key, JwtRequirement defaultValue)A map of unique requirement_names to JwtRequirements.JwtRequirementgetRequirementMapOrThrow(String key)A map of unique requirement_names to JwtRequirements.RequirementRulegetRules(int index)Specifies requirements based on the route matches.RequirementRule.BuildergetRulesBuilder(int index)Specifies requirements based on the route matches.List<RequirementRule.Builder>getRulesBuilderList()Specifies requirements based on the route matches.intgetRulesCount()Specifies requirements based on the route matches.List<RequirementRule>getRulesList()Specifies requirements based on the route matches.RequirementRuleOrBuildergetRulesOrBuilder(int index)Specifies requirements based on the route matches.List<? extends RequirementRuleOrBuilder>getRulesOrBuilderList()Specifies requirements based on the route matches.booleanhasFilterStateRules()This message specifies Jwt requirements based on stream_info.filterState.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()JwtAuthentication.BuildermergeFilterStateRules(FilterStateRule value)This message specifies Jwt requirements based on stream_info.filterState.JwtAuthentication.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)JwtAuthentication.BuildermergeFrom(com.google.protobuf.Message other)JwtAuthentication.BuildermergeFrom(JwtAuthentication other)JwtAuthentication.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)JwtAuthentication.BuilderputAllProviders(Map<String,JwtProvider> values)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 timeout: 1s provider2: issuer: provider2 local_jwks: inline_string: jwks_stringJwtAuthentication.BuilderputAllRequirementMap(Map<String,JwtRequirement> values)A map of unique requirement_names to JwtRequirements.JwtAuthentication.BuilderputProviders(String key, JwtProvider value)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 timeout: 1s provider2: issuer: provider2 local_jwks: inline_string: jwks_stringJwtAuthentication.BuilderputRequirementMap(String key, JwtRequirement value)A map of unique requirement_names to JwtRequirements.JwtAuthentication.BuilderremoveProviders(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 timeout: 1s provider2: issuer: provider2 local_jwks: inline_string: jwks_stringJwtAuthentication.BuilderremoveRequirementMap(String key)A map of unique requirement_names to JwtRequirements.JwtAuthentication.BuilderremoveRules(int index)Specifies requirements based on the route matches.JwtAuthentication.BuildersetBypassCorsPreflight(boolean value)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.JwtAuthentication.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)JwtAuthentication.BuildersetFilterStateRules(FilterStateRule value)This message specifies Jwt requirements based on stream_info.filterState.JwtAuthentication.BuildersetFilterStateRules(FilterStateRule.Builder builderForValue)This message specifies Jwt requirements based on stream_info.filterState.JwtAuthentication.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)JwtAuthentication.BuildersetRules(int index, RequirementRule value)Specifies requirements based on the route matches.JwtAuthentication.BuildersetRules(int index, RequirementRule.Builder builderForValue)Specifies requirements based on the route matches.JwtAuthentication.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<JwtAuthentication.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<JwtAuthentication.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<JwtAuthentication.Builder>
-
clear
public JwtAuthentication.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<JwtAuthentication.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<JwtAuthentication.Builder>
-
getDefaultInstanceForType
public JwtAuthentication getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public JwtAuthentication build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public JwtAuthentication buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public JwtAuthentication.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<JwtAuthentication.Builder>
-
setField
public JwtAuthentication.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<JwtAuthentication.Builder>
-
clearField
public JwtAuthentication.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<JwtAuthentication.Builder>
-
clearOneof
public JwtAuthentication.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<JwtAuthentication.Builder>
-
setRepeatedField
public JwtAuthentication.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<JwtAuthentication.Builder>
-
addRepeatedField
public JwtAuthentication.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<JwtAuthentication.Builder>
-
mergeFrom
public JwtAuthentication.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<JwtAuthentication.Builder>
-
mergeFrom
public JwtAuthentication.Builder mergeFrom(JwtAuthentication other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<JwtAuthentication.Builder>
-
mergeFrom
public JwtAuthentication.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<JwtAuthentication.Builder>- Throws:
IOException
-
getProvidersCount
public int getProvidersCount()
Description copied from interface:JwtAuthenticationOrBuilderMap 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 timeout: 1s provider2: issuer: provider2 local_jwks: inline_string: jwks_stringmap<string, .envoy.extensions.filters.http.jwt_authn.v3.JwtProvider> providers = 1;- Specified by:
getProvidersCountin interfaceJwtAuthenticationOrBuilder
-
containsProviders
public 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 timeout: 1s provider2: issuer: provider2 local_jwks: inline_string: jwks_stringmap<string, .envoy.extensions.filters.http.jwt_authn.v3.JwtProvider> providers = 1;- Specified by:
containsProvidersin interfaceJwtAuthenticationOrBuilder
-
getProviders
@Deprecated public Map<String,JwtProvider> getProviders()
Deprecated.UsegetProvidersMap()instead.- Specified by:
getProvidersin interfaceJwtAuthenticationOrBuilder
-
getProvidersMap
public 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 timeout: 1s provider2: issuer: provider2 local_jwks: inline_string: jwks_stringmap<string, .envoy.extensions.filters.http.jwt_authn.v3.JwtProvider> providers = 1;- Specified by:
getProvidersMapin interfaceJwtAuthenticationOrBuilder
-
getProvidersOrDefault
public 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 timeout: 1s provider2: issuer: provider2 local_jwks: inline_string: jwks_stringmap<string, .envoy.extensions.filters.http.jwt_authn.v3.JwtProvider> providers = 1;- Specified by:
getProvidersOrDefaultin interfaceJwtAuthenticationOrBuilder
-
getProvidersOrThrow
public 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 timeout: 1s provider2: issuer: provider2 local_jwks: inline_string: jwks_stringmap<string, .envoy.extensions.filters.http.jwt_authn.v3.JwtProvider> providers = 1;- Specified by:
getProvidersOrThrowin interfaceJwtAuthenticationOrBuilder
-
clearProviders
public JwtAuthentication.Builder clearProviders()
-
removeProviders
public JwtAuthentication.Builder removeProviders(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 timeout: 1s provider2: issuer: provider2 local_jwks: inline_string: jwks_stringmap<string, .envoy.extensions.filters.http.jwt_authn.v3.JwtProvider> providers = 1;
-
getMutableProviders
@Deprecated public Map<String,JwtProvider> getMutableProviders()
Deprecated.Use alternate mutation accessors instead.
-
putProviders
public JwtAuthentication.Builder putProviders(String key, JwtProvider value)
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 timeout: 1s provider2: issuer: provider2 local_jwks: inline_string: jwks_stringmap<string, .envoy.extensions.filters.http.jwt_authn.v3.JwtProvider> providers = 1;
-
putAllProviders
public JwtAuthentication.Builder putAllProviders(Map<String,JwtProvider> values)
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 timeout: 1s provider2: issuer: provider2 local_jwks: inline_string: jwks_stringmap<string, .envoy.extensions.filters.http.jwt_authn.v3.JwtProvider> providers = 1;
-
getRulesList
public 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.extensions.filters.http.jwt_authn.v3.RequirementRule rules = 2;- Specified by:
getRulesListin interfaceJwtAuthenticationOrBuilder
-
getRulesCount
public 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.extensions.filters.http.jwt_authn.v3.RequirementRule rules = 2;- Specified by:
getRulesCountin interfaceJwtAuthenticationOrBuilder
-
getRules
public 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: provider2repeated .envoy.extensions.filters.http.jwt_authn.v3.RequirementRule rules = 2;- Specified by:
getRulesin interfaceJwtAuthenticationOrBuilder
-
setRules
public JwtAuthentication.Builder setRules(int index, RequirementRule value)
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.extensions.filters.http.jwt_authn.v3.RequirementRule rules = 2;
-
setRules
public JwtAuthentication.Builder setRules(int index, RequirementRule.Builder builderForValue)
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.extensions.filters.http.jwt_authn.v3.RequirementRule rules = 2;
-
addRules
public JwtAuthentication.Builder addRules(RequirementRule value)
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.extensions.filters.http.jwt_authn.v3.RequirementRule rules = 2;
-
addRules
public JwtAuthentication.Builder addRules(int index, RequirementRule value)
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.extensions.filters.http.jwt_authn.v3.RequirementRule rules = 2;
-
addRules
public JwtAuthentication.Builder addRules(RequirementRule.Builder builderForValue)
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.extensions.filters.http.jwt_authn.v3.RequirementRule rules = 2;
-
addRules
public JwtAuthentication.Builder addRules(int index, RequirementRule.Builder builderForValue)
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.extensions.filters.http.jwt_authn.v3.RequirementRule rules = 2;
-
addAllRules
public JwtAuthentication.Builder addAllRules(Iterable<? extends RequirementRule> values)
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.extensions.filters.http.jwt_authn.v3.RequirementRule rules = 2;
-
clearRules
public JwtAuthentication.Builder clearRules()
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.extensions.filters.http.jwt_authn.v3.RequirementRule rules = 2;
-
removeRules
public JwtAuthentication.Builder removeRules(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: provider2repeated .envoy.extensions.filters.http.jwt_authn.v3.RequirementRule rules = 2;
-
getRulesBuilder
public RequirementRule.Builder getRulesBuilder(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: provider2repeated .envoy.extensions.filters.http.jwt_authn.v3.RequirementRule rules = 2;
-
getRulesOrBuilder
public 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: provider2repeated .envoy.extensions.filters.http.jwt_authn.v3.RequirementRule rules = 2;- Specified by:
getRulesOrBuilderin interfaceJwtAuthenticationOrBuilder
-
getRulesOrBuilderList
public 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.extensions.filters.http.jwt_authn.v3.RequirementRule rules = 2;- Specified by:
getRulesOrBuilderListin interfaceJwtAuthenticationOrBuilder
-
addRulesBuilder
public RequirementRule.Builder addRulesBuilder()
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.extensions.filters.http.jwt_authn.v3.RequirementRule rules = 2;
-
addRulesBuilder
public RequirementRule.Builder addRulesBuilder(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: provider2repeated .envoy.extensions.filters.http.jwt_authn.v3.RequirementRule rules = 2;
-
getRulesBuilderList
public List<RequirementRule.Builder> getRulesBuilderList()
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.extensions.filters.http.jwt_authn.v3.RequirementRule rules = 2;
-
hasFilterStateRules
public 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.extensions.filters.http.jwt_authn.v3.FilterStateRule filter_state_rules = 3;- Specified by:
hasFilterStateRulesin interfaceJwtAuthenticationOrBuilder- Returns:
- Whether the filterStateRules field is set.
-
getFilterStateRules
public 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.extensions.filters.http.jwt_authn.v3.FilterStateRule filter_state_rules = 3;- Specified by:
getFilterStateRulesin interfaceJwtAuthenticationOrBuilder- Returns:
- The filterStateRules.
-
setFilterStateRules
public JwtAuthentication.Builder setFilterStateRules(FilterStateRule value)
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.extensions.filters.http.jwt_authn.v3.FilterStateRule filter_state_rules = 3;
-
setFilterStateRules
public JwtAuthentication.Builder setFilterStateRules(FilterStateRule.Builder builderForValue)
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.extensions.filters.http.jwt_authn.v3.FilterStateRule filter_state_rules = 3;
-
mergeFilterStateRules
public JwtAuthentication.Builder mergeFilterStateRules(FilterStateRule value)
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.extensions.filters.http.jwt_authn.v3.FilterStateRule filter_state_rules = 3;
-
clearFilterStateRules
public JwtAuthentication.Builder clearFilterStateRules()
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.extensions.filters.http.jwt_authn.v3.FilterStateRule filter_state_rules = 3;
-
getFilterStateRulesBuilder
public FilterStateRule.Builder getFilterStateRulesBuilder()
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.extensions.filters.http.jwt_authn.v3.FilterStateRule filter_state_rules = 3;
-
getFilterStateRulesOrBuilder
public 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.extensions.filters.http.jwt_authn.v3.FilterStateRule filter_state_rules = 3;- Specified by:
getFilterStateRulesOrBuilderin interfaceJwtAuthenticationOrBuilder
-
getBypassCorsPreflight
public 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;- Specified by:
getBypassCorsPreflightin interfaceJwtAuthenticationOrBuilder- Returns:
- The bypassCorsPreflight.
-
setBypassCorsPreflight
public JwtAuthentication.Builder setBypassCorsPreflight(boolean value)
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;- Parameters:
value- The bypassCorsPreflight to set.- Returns:
- This builder for chaining.
-
clearBypassCorsPreflight
public JwtAuthentication.Builder clearBypassCorsPreflight()
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:
- This builder for chaining.
-
getRequirementMapCount
public int getRequirementMapCount()
Description copied from interface:JwtAuthenticationOrBuilderA map of unique requirement_names to JwtRequirements. :ref:`requirement_name <envoy_v3_api_field_extensions.filters.http.jwt_authn.v3.PerRouteConfig.requirement_name>` in ``PerRouteConfig`` uses this map to specify a JwtRequirement.
map<string, .envoy.extensions.filters.http.jwt_authn.v3.JwtRequirement> requirement_map = 5;- Specified by:
getRequirementMapCountin interfaceJwtAuthenticationOrBuilder
-
containsRequirementMap
public boolean containsRequirementMap(String key)
A map of unique requirement_names to JwtRequirements. :ref:`requirement_name <envoy_v3_api_field_extensions.filters.http.jwt_authn.v3.PerRouteConfig.requirement_name>` in ``PerRouteConfig`` uses this map to specify a JwtRequirement.
map<string, .envoy.extensions.filters.http.jwt_authn.v3.JwtRequirement> requirement_map = 5;- Specified by:
containsRequirementMapin interfaceJwtAuthenticationOrBuilder
-
getRequirementMap
@Deprecated public Map<String,JwtRequirement> getRequirementMap()
Deprecated.UsegetRequirementMapMap()instead.- Specified by:
getRequirementMapin interfaceJwtAuthenticationOrBuilder
-
getRequirementMapMap
public Map<String,JwtRequirement> getRequirementMapMap()
A map of unique requirement_names to JwtRequirements. :ref:`requirement_name <envoy_v3_api_field_extensions.filters.http.jwt_authn.v3.PerRouteConfig.requirement_name>` in ``PerRouteConfig`` uses this map to specify a JwtRequirement.
map<string, .envoy.extensions.filters.http.jwt_authn.v3.JwtRequirement> requirement_map = 5;- Specified by:
getRequirementMapMapin interfaceJwtAuthenticationOrBuilder
-
getRequirementMapOrDefault
public JwtRequirement getRequirementMapOrDefault(String key, JwtRequirement defaultValue)
A map of unique requirement_names to JwtRequirements. :ref:`requirement_name <envoy_v3_api_field_extensions.filters.http.jwt_authn.v3.PerRouteConfig.requirement_name>` in ``PerRouteConfig`` uses this map to specify a JwtRequirement.
map<string, .envoy.extensions.filters.http.jwt_authn.v3.JwtRequirement> requirement_map = 5;- Specified by:
getRequirementMapOrDefaultin interfaceJwtAuthenticationOrBuilder
-
getRequirementMapOrThrow
public JwtRequirement getRequirementMapOrThrow(String key)
A map of unique requirement_names to JwtRequirements. :ref:`requirement_name <envoy_v3_api_field_extensions.filters.http.jwt_authn.v3.PerRouteConfig.requirement_name>` in ``PerRouteConfig`` uses this map to specify a JwtRequirement.
map<string, .envoy.extensions.filters.http.jwt_authn.v3.JwtRequirement> requirement_map = 5;- Specified by:
getRequirementMapOrThrowin interfaceJwtAuthenticationOrBuilder
-
clearRequirementMap
public JwtAuthentication.Builder clearRequirementMap()
-
removeRequirementMap
public JwtAuthentication.Builder removeRequirementMap(String key)
A map of unique requirement_names to JwtRequirements. :ref:`requirement_name <envoy_v3_api_field_extensions.filters.http.jwt_authn.v3.PerRouteConfig.requirement_name>` in ``PerRouteConfig`` uses this map to specify a JwtRequirement.
map<string, .envoy.extensions.filters.http.jwt_authn.v3.JwtRequirement> requirement_map = 5;
-
getMutableRequirementMap
@Deprecated public Map<String,JwtRequirement> getMutableRequirementMap()
Deprecated.Use alternate mutation accessors instead.
-
putRequirementMap
public JwtAuthentication.Builder putRequirementMap(String key, JwtRequirement value)
A map of unique requirement_names to JwtRequirements. :ref:`requirement_name <envoy_v3_api_field_extensions.filters.http.jwt_authn.v3.PerRouteConfig.requirement_name>` in ``PerRouteConfig`` uses this map to specify a JwtRequirement.
map<string, .envoy.extensions.filters.http.jwt_authn.v3.JwtRequirement> requirement_map = 5;
-
putAllRequirementMap
public JwtAuthentication.Builder putAllRequirementMap(Map<String,JwtRequirement> values)
A map of unique requirement_names to JwtRequirements. :ref:`requirement_name <envoy_v3_api_field_extensions.filters.http.jwt_authn.v3.PerRouteConfig.requirement_name>` in ``PerRouteConfig`` uses this map to specify a JwtRequirement.
map<string, .envoy.extensions.filters.http.jwt_authn.v3.JwtRequirement> requirement_map = 5;
-
setUnknownFields
public final JwtAuthentication.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<JwtAuthentication.Builder>
-
mergeUnknownFields
public final JwtAuthentication.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<JwtAuthentication.Builder>
-
-