Class JwtAuthentication.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
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: 8]
Protobuf type envoy.extensions.filters.http.jwt_authn.v3.JwtAuthentication-
Method Summary
Modifier and TypeMethodDescriptionaddAllRules(Iterable<? extends RequirementRule> values) Specifies requirements based on the route matches.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addRules(int index, RequirementRule value) Specifies requirements based on the route matches.addRules(int index, RequirementRule.Builder builderForValue) Specifies requirements based on the route matches.addRules(RequirementRule value) Specifies requirements based on the route matches.addRules(RequirementRule.Builder builderForValue) Specifies requirements based on the route matches.Specifies requirements based on the route matches.addRulesBuilder(int index) Specifies requirements based on the route matches.build()clear()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.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) This message specifies Jwt requirements based on stream_info.filterState.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Specifies requirements based on the route matches.Optional additional prefix to use when emitting statistics.A request failing the verification process will receive a 401 downstream with the failure response details in the body along with WWWAuthenticate header value set with "invalid token".clone()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_stringbooleanA map of unique requirement_names to JwtRequirements.booleanWhen 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.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThis message specifies Jwt requirements based on stream_info.filterState.This message specifies Jwt requirements based on stream_info.filterState.This message specifies Jwt requirements based on stream_info.filterState.Deprecated.Deprecated.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 timeout: 1s 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 timeout: 1s 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 timeout: 1s 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 timeout: 1s provider2: issuer: provider2 local_jwks: inline_string: jwks_stringDeprecated.intA map of unique requirement_names to JwtRequirements.A map of unique requirement_names to JwtRequirements.getRequirementMapOrDefault(String key, JwtRequirement defaultValue) A map of unique requirement_names to JwtRequirements.A map of unique requirement_names to JwtRequirements.getRules(int index) Specifies requirements based on the route matches.getRulesBuilder(int index) Specifies requirements based on the route matches.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.Optional additional prefix to use when emitting statistics.com.google.protobuf.ByteStringOptional additional prefix to use when emitting statistics.booleanA request failing the verification process will receive a 401 downstream with the failure response details in the body along with WWWAuthenticate header value set with "invalid token".booleanThis message specifies Jwt requirements based on stream_info.filterState.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanThis message specifies Jwt requirements based on stream_info.filterState.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(JwtAuthentication other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) 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_stringputAllRequirementMap(Map<String, JwtRequirement> values) A map of unique requirement_names to JwtRequirements.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 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_stringputRequirementMap(String key, JwtRequirement value) A map of unique requirement_names to JwtRequirements.A map of unique requirement_names to JwtRequirements.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_stringA map of unique requirement_names to JwtRequirements.removeRules(int index) Specifies requirements based on the route matches.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.This message specifies Jwt requirements based on stream_info.filterState.setFilterStateRules(FilterStateRule.Builder builderForValue) This message specifies Jwt requirements based on stream_info.filterState.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRules(int index, RequirementRule value) Specifies requirements based on the route matches.setRules(int index, RequirementRule.Builder builderForValue) Specifies requirements based on the route matches.setStatPrefix(String value) Optional additional prefix to use when emitting statistics.setStatPrefixBytes(com.google.protobuf.ByteString value) Optional additional prefix to use when emitting statistics.setStripFailureResponse(boolean value) A request failing the verification process will receive a 401 downstream with the failure response details in the body along with WWWAuthenticate header value set with "invalid token".setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<JwtAuthentication.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin 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
- 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
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<JwtAuthentication.Builder>
-
clearOneof
- 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
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<JwtAuthentication.Builder>
-
mergeFrom
-
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
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.UsegetProvidersMap()instead.- Specified by:
getProvidersin interfaceJwtAuthenticationOrBuilder
-
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
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
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
-
removeProviders
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.Use alternate mutation accessors instead. -
putProviders
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
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; -
putProvidersBuilderIfAbsent
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.UsegetRequirementMapMap()instead.- Specified by:
getRequirementMapin interfaceJwtAuthenticationOrBuilder
-
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
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
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
-
removeRequirementMap
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.Use alternate mutation accessors instead. -
putRequirementMap
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
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; -
putRequirementMapBuilderIfAbsent
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; -
getStripFailureResponse
public boolean getStripFailureResponse()A request failing the verification process will receive a 401 downstream with the failure response details in the body along with WWWAuthenticate header value set with "invalid token". If this value is set to true, the response details will be stripped and only a 401 response code will be returned. Default value is false
bool strip_failure_response = 6;- Specified by:
getStripFailureResponsein interfaceJwtAuthenticationOrBuilder- Returns:
- The stripFailureResponse.
-
setStripFailureResponse
A request failing the verification process will receive a 401 downstream with the failure response details in the body along with WWWAuthenticate header value set with "invalid token". If this value is set to true, the response details will be stripped and only a 401 response code will be returned. Default value is false
bool strip_failure_response = 6;- Parameters:
value- The stripFailureResponse to set.- Returns:
- This builder for chaining.
-
clearStripFailureResponse
A request failing the verification process will receive a 401 downstream with the failure response details in the body along with WWWAuthenticate header value set with "invalid token". If this value is set to true, the response details will be stripped and only a 401 response code will be returned. Default value is false
bool strip_failure_response = 6;- Returns:
- This builder for chaining.
-
getStatPrefix
Optional additional prefix to use when emitting statistics.
string stat_prefix = 7;- Specified by:
getStatPrefixin interfaceJwtAuthenticationOrBuilder- Returns:
- The statPrefix.
-
getStatPrefixBytes
public com.google.protobuf.ByteString getStatPrefixBytes()Optional additional prefix to use when emitting statistics.
string stat_prefix = 7;- Specified by:
getStatPrefixBytesin interfaceJwtAuthenticationOrBuilder- Returns:
- The bytes for statPrefix.
-
setStatPrefix
Optional additional prefix to use when emitting statistics.
string stat_prefix = 7;- Parameters:
value- The statPrefix to set.- Returns:
- This builder for chaining.
-
clearStatPrefix
Optional additional prefix to use when emitting statistics.
string stat_prefix = 7;- Returns:
- This builder for chaining.
-
setStatPrefixBytes
Optional additional prefix to use when emitting statistics.
string stat_prefix = 7;- Parameters:
value- The bytes for statPrefix to set.- Returns:
- This builder for chaining.
-
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>
-