public static final class Config.RequirementRule.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Config.RequirementRule.Builder> implements Config.RequirementRuleOrBuilder
This message specifies a Jwt requirement for a specific Route condition.
Example 1:
.. code-block:: yaml
- match:
prefix: "/healthz"
In above example, "requires" field is empty for /healthz prefix match,
it means that requests matching the path prefix don't require JWT authentication.
Example 2:
.. code-block:: yaml
- match:
prefix: "/"
requires: { provider_name: "provider-A" }
In above example, all requests matched the path prefix require jwt authentication
from "provider-A".
Protobuf type envoy.config.filter.http.jwt_authn.v2alpha.RequirementRulegetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Config.RequirementRule.Builder>public Config.RequirementRule.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Config.RequirementRule.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Config.RequirementRule.Builder>public Config.RequirementRule getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Config.RequirementRule build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Config.RequirementRule buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Config.RequirementRule.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Config.RequirementRule.Builder>public Config.RequirementRule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Config.RequirementRule.Builder>public Config.RequirementRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Config.RequirementRule.Builder>public Config.RequirementRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Config.RequirementRule.Builder>public Config.RequirementRule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Config.RequirementRule.Builder>public Config.RequirementRule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Config.RequirementRule.Builder>public Config.RequirementRule.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Config.RequirementRule.Builder>public Config.RequirementRule.Builder mergeFrom(Config.RequirementRule other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Config.RequirementRule.Builder>public Config.RequirementRule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Config.RequirementRule.Builder>IOExceptionpublic boolean hasMatch()
The route matching parameter. Only when the match is satisfied, the "requires" field will
apply.
For example: following match will match all requests.
.. code-block:: yaml
match:
prefix: "/"
.envoy.api.v2.route.RouteMatch match = 1 [(.validate.rules) = { ... }hasMatch in interface Config.RequirementRuleOrBuilderpublic RouteOuterClass.RouteMatch getMatch()
The route matching parameter. Only when the match is satisfied, the "requires" field will
apply.
For example: following match will match all requests.
.. code-block:: yaml
match:
prefix: "/"
.envoy.api.v2.route.RouteMatch match = 1 [(.validate.rules) = { ... }getMatch in interface Config.RequirementRuleOrBuilderpublic Config.RequirementRule.Builder setMatch(RouteOuterClass.RouteMatch value)
The route matching parameter. Only when the match is satisfied, the "requires" field will
apply.
For example: following match will match all requests.
.. code-block:: yaml
match:
prefix: "/"
.envoy.api.v2.route.RouteMatch match = 1 [(.validate.rules) = { ... }public Config.RequirementRule.Builder setMatch(RouteOuterClass.RouteMatch.Builder builderForValue)
The route matching parameter. Only when the match is satisfied, the "requires" field will
apply.
For example: following match will match all requests.
.. code-block:: yaml
match:
prefix: "/"
.envoy.api.v2.route.RouteMatch match = 1 [(.validate.rules) = { ... }public Config.RequirementRule.Builder mergeMatch(RouteOuterClass.RouteMatch value)
The route matching parameter. Only when the match is satisfied, the "requires" field will
apply.
For example: following match will match all requests.
.. code-block:: yaml
match:
prefix: "/"
.envoy.api.v2.route.RouteMatch match = 1 [(.validate.rules) = { ... }public Config.RequirementRule.Builder clearMatch()
The route matching parameter. Only when the match is satisfied, the "requires" field will
apply.
For example: following match will match all requests.
.. code-block:: yaml
match:
prefix: "/"
.envoy.api.v2.route.RouteMatch match = 1 [(.validate.rules) = { ... }public RouteOuterClass.RouteMatch.Builder getMatchBuilder()
The route matching parameter. Only when the match is satisfied, the "requires" field will
apply.
For example: following match will match all requests.
.. code-block:: yaml
match:
prefix: "/"
.envoy.api.v2.route.RouteMatch match = 1 [(.validate.rules) = { ... }public RouteOuterClass.RouteMatchOrBuilder getMatchOrBuilder()
The route matching parameter. Only when the match is satisfied, the "requires" field will
apply.
For example: following match will match all requests.
.. code-block:: yaml
match:
prefix: "/"
.envoy.api.v2.route.RouteMatch match = 1 [(.validate.rules) = { ... }getMatchOrBuilder in interface Config.RequirementRuleOrBuilderpublic boolean hasRequires()
Specify a Jwt Requirement. Please detail comment in message JwtRequirement.
.envoy.config.filter.http.jwt_authn.v2alpha.JwtRequirement requires = 2;hasRequires in interface Config.RequirementRuleOrBuilderpublic Config.JwtRequirement getRequires()
Specify a Jwt Requirement. Please detail comment in message JwtRequirement.
.envoy.config.filter.http.jwt_authn.v2alpha.JwtRequirement requires = 2;getRequires in interface Config.RequirementRuleOrBuilderpublic Config.RequirementRule.Builder setRequires(Config.JwtRequirement value)
Specify a Jwt Requirement. Please detail comment in message JwtRequirement.
.envoy.config.filter.http.jwt_authn.v2alpha.JwtRequirement requires = 2;public Config.RequirementRule.Builder setRequires(Config.JwtRequirement.Builder builderForValue)
Specify a Jwt Requirement. Please detail comment in message JwtRequirement.
.envoy.config.filter.http.jwt_authn.v2alpha.JwtRequirement requires = 2;public Config.RequirementRule.Builder mergeRequires(Config.JwtRequirement value)
Specify a Jwt Requirement. Please detail comment in message JwtRequirement.
.envoy.config.filter.http.jwt_authn.v2alpha.JwtRequirement requires = 2;public Config.RequirementRule.Builder clearRequires()
Specify a Jwt Requirement. Please detail comment in message JwtRequirement.
.envoy.config.filter.http.jwt_authn.v2alpha.JwtRequirement requires = 2;public Config.JwtRequirement.Builder getRequiresBuilder()
Specify a Jwt Requirement. Please detail comment in message JwtRequirement.
.envoy.config.filter.http.jwt_authn.v2alpha.JwtRequirement requires = 2;public Config.JwtRequirementOrBuilder getRequiresOrBuilder()
Specify a Jwt Requirement. Please detail comment in message JwtRequirement.
.envoy.config.filter.http.jwt_authn.v2alpha.JwtRequirement requires = 2;getRequiresOrBuilder in interface Config.RequirementRuleOrBuilderpublic final Config.RequirementRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Config.RequirementRule.Builder>public final Config.RequirementRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Config.RequirementRule.Builder>Copyright © 2018 The Envoy Project. All rights reserved.