public static final class RequirementRule.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RequirementRule.Builder> implements 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.extensions.filters.http.jwt_authn.v4alpha.RequirementRule| Modifier and Type | Method and Description |
|---|---|
RequirementRule.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RequirementRule |
build() |
RequirementRule |
buildPartial() |
RequirementRule.Builder |
clear() |
RequirementRule.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
RequirementRule.Builder |
clearMatch()
The route matching parameter.
|
RequirementRule.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RequirementRule.Builder |
clearRequirementName()
Use requirement_name to specify a Jwt requirement.
|
RequirementRule.Builder |
clearRequirementType() |
RequirementRule.Builder |
clearRequires()
Specify a Jwt requirement.
|
RequirementRule.Builder |
clone() |
RequirementRule |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
RouteMatch |
getMatch()
The route matching parameter.
|
RouteMatch.Builder |
getMatchBuilder()
The route matching parameter.
|
RouteMatchOrBuilder |
getMatchOrBuilder()
The route matching parameter.
|
String |
getRequirementName()
Use requirement_name to specify a Jwt requirement.
|
com.google.protobuf.ByteString |
getRequirementNameBytes()
Use requirement_name to specify a Jwt requirement.
|
RequirementRule.RequirementTypeCase |
getRequirementTypeCase() |
JwtRequirement |
getRequires()
Specify a Jwt requirement.
|
JwtRequirement.Builder |
getRequiresBuilder()
Specify a Jwt requirement.
|
JwtRequirementOrBuilder |
getRequiresOrBuilder()
Specify a Jwt requirement.
|
boolean |
hasMatch()
The route matching parameter.
|
boolean |
hasRequires()
Specify a Jwt requirement.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RequirementRule.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RequirementRule.Builder |
mergeFrom(com.google.protobuf.Message other) |
RequirementRule.Builder |
mergeFrom(RequirementRule other) |
RequirementRule.Builder |
mergeMatch(RouteMatch value)
The route matching parameter.
|
RequirementRule.Builder |
mergeRequires(JwtRequirement value)
Specify a Jwt requirement.
|
RequirementRule.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RequirementRule.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RequirementRule.Builder |
setMatch(RouteMatch.Builder builderForValue)
The route matching parameter.
|
RequirementRule.Builder |
setMatch(RouteMatch value)
The route matching parameter.
|
RequirementRule.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
RequirementRule.Builder |
setRequirementName(String value)
Use requirement_name to specify a Jwt requirement.
|
RequirementRule.Builder |
setRequirementNameBytes(com.google.protobuf.ByteString value)
Use requirement_name to specify a Jwt requirement.
|
RequirementRule.Builder |
setRequires(JwtRequirement.Builder builderForValue)
Specify a Jwt requirement.
|
RequirementRule.Builder |
setRequires(JwtRequirement value)
Specify a Jwt requirement.
|
RequirementRule.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, 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<RequirementRule.Builder>public 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<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<RequirementRule.Builder>public RequirementRule getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RequirementRule build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RequirementRule buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic 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<RequirementRule.Builder>public 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<RequirementRule.Builder>public RequirementRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<RequirementRule.Builder>public RequirementRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RequirementRule.Builder>public 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<RequirementRule.Builder>public 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<RequirementRule.Builder>public RequirementRule.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RequirementRule.Builder>public RequirementRule.Builder mergeFrom(RequirementRule other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RequirementRule.Builder>public 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<RequirementRule.Builder>IOExceptionpublic RequirementRule.RequirementTypeCase getRequirementTypeCase()
getRequirementTypeCase in interface RequirementRuleOrBuilderpublic RequirementRule.Builder clearRequirementType()
public 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.config.route.v4alpha.RouteMatch match = 1 [(.validate.rules) = { ... }hasMatch in interface RequirementRuleOrBuilderpublic 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.config.route.v4alpha.RouteMatch match = 1 [(.validate.rules) = { ... }getMatch in interface RequirementRuleOrBuilderpublic RequirementRule.Builder setMatch(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.config.route.v4alpha.RouteMatch match = 1 [(.validate.rules) = { ... }public RequirementRule.Builder setMatch(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.config.route.v4alpha.RouteMatch match = 1 [(.validate.rules) = { ... }public RequirementRule.Builder mergeMatch(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.config.route.v4alpha.RouteMatch match = 1 [(.validate.rules) = { ... }public 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.config.route.v4alpha.RouteMatch match = 1 [(.validate.rules) = { ... }public 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.config.route.v4alpha.RouteMatch match = 1 [(.validate.rules) = { ... }public 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.config.route.v4alpha.RouteMatch match = 1 [(.validate.rules) = { ... }getMatchOrBuilder in interface RequirementRuleOrBuilderpublic boolean hasRequires()
Specify a Jwt requirement. Please see detail comment in message JwtRequirement.
.envoy.extensions.filters.http.jwt_authn.v4alpha.JwtRequirement requires = 2;hasRequires in interface RequirementRuleOrBuilderpublic JwtRequirement getRequires()
Specify a Jwt requirement. Please see detail comment in message JwtRequirement.
.envoy.extensions.filters.http.jwt_authn.v4alpha.JwtRequirement requires = 2;getRequires in interface RequirementRuleOrBuilderpublic RequirementRule.Builder setRequires(JwtRequirement value)
Specify a Jwt requirement. Please see detail comment in message JwtRequirement.
.envoy.extensions.filters.http.jwt_authn.v4alpha.JwtRequirement requires = 2;public RequirementRule.Builder setRequires(JwtRequirement.Builder builderForValue)
Specify a Jwt requirement. Please see detail comment in message JwtRequirement.
.envoy.extensions.filters.http.jwt_authn.v4alpha.JwtRequirement requires = 2;public RequirementRule.Builder mergeRequires(JwtRequirement value)
Specify a Jwt requirement. Please see detail comment in message JwtRequirement.
.envoy.extensions.filters.http.jwt_authn.v4alpha.JwtRequirement requires = 2;public RequirementRule.Builder clearRequires()
Specify a Jwt requirement. Please see detail comment in message JwtRequirement.
.envoy.extensions.filters.http.jwt_authn.v4alpha.JwtRequirement requires = 2;public JwtRequirement.Builder getRequiresBuilder()
Specify a Jwt requirement. Please see detail comment in message JwtRequirement.
.envoy.extensions.filters.http.jwt_authn.v4alpha.JwtRequirement requires = 2;public JwtRequirementOrBuilder getRequiresOrBuilder()
Specify a Jwt requirement. Please see detail comment in message JwtRequirement.
.envoy.extensions.filters.http.jwt_authn.v4alpha.JwtRequirement requires = 2;getRequiresOrBuilder in interface RequirementRuleOrBuilderpublic String getRequirementName()
Use requirement_name to specify a Jwt requirement. This requirement_name MUST be specified at the :ref:`requirement_map <envoy_v3_api_field_extensions.filters.http.jwt_authn.v3.JwtAuthentication.requirement_map>` in `JwtAuthentication`.
string requirement_name = 3 [(.validate.rules) = { ... }getRequirementName in interface RequirementRuleOrBuilderpublic com.google.protobuf.ByteString getRequirementNameBytes()
Use requirement_name to specify a Jwt requirement. This requirement_name MUST be specified at the :ref:`requirement_map <envoy_v3_api_field_extensions.filters.http.jwt_authn.v3.JwtAuthentication.requirement_map>` in `JwtAuthentication`.
string requirement_name = 3 [(.validate.rules) = { ... }getRequirementNameBytes in interface RequirementRuleOrBuilderpublic RequirementRule.Builder setRequirementName(String value)
Use requirement_name to specify a Jwt requirement. This requirement_name MUST be specified at the :ref:`requirement_map <envoy_v3_api_field_extensions.filters.http.jwt_authn.v3.JwtAuthentication.requirement_map>` in `JwtAuthentication`.
string requirement_name = 3 [(.validate.rules) = { ... }public RequirementRule.Builder clearRequirementName()
Use requirement_name to specify a Jwt requirement. This requirement_name MUST be specified at the :ref:`requirement_map <envoy_v3_api_field_extensions.filters.http.jwt_authn.v3.JwtAuthentication.requirement_map>` in `JwtAuthentication`.
string requirement_name = 3 [(.validate.rules) = { ... }public RequirementRule.Builder setRequirementNameBytes(com.google.protobuf.ByteString value)
Use requirement_name to specify a Jwt requirement. This requirement_name MUST be specified at the :ref:`requirement_map <envoy_v3_api_field_extensions.filters.http.jwt_authn.v3.JwtAuthentication.requirement_map>` in `JwtAuthentication`.
string requirement_name = 3 [(.validate.rules) = { ... }public final RequirementRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RequirementRule.Builder>public final RequirementRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RequirementRule.Builder>Copyright © 2018–2021 The Envoy Project. All rights reserved.