public final class FilterStateRule extends com.google.protobuf.GeneratedMessageV3 implements FilterStateRuleOrBuilder
This message specifies Jwt requirements based on stream_info.filterState.
This FilterState should use `Router::StringAccessor` object to set a string value.
Other HTTP filters can use it to specify Jwt requirements dynamically.
Example:
.. code-block:: yaml
name: jwt_selector
requires:
issuer_1:
provider_name: issuer1
issuer_2:
provider_name: issuer2
If a filter set "jwt_selector" with "issuer_1" to FilterState for a request,
jwt_authn filter will use JwtRequirement{"provider_name": "issuer1"} to verify.
Protobuf type envoy.extensions.filters.http.jwt_authn.v4alpha.FilterStateRule| Modifier and Type | Class and Description |
|---|---|
static class |
FilterStateRule.Builder
This message specifies Jwt requirements based on stream_info.filterState.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
NAME_FIELD_NUMBER |
static int |
REQUIRES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsRequires(String key)
A map of string keys to requirements.
|
boolean |
equals(Object obj) |
static FilterStateRule |
getDefaultInstance() |
FilterStateRule |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getName()
The filter state name to retrieve the `Router::StringAccessor` object.
|
com.google.protobuf.ByteString |
getNameBytes()
The filter state name to retrieve the `Router::StringAccessor` object.
|
com.google.protobuf.Parser<FilterStateRule> |
getParserForType() |
Map<String,JwtRequirement> |
getRequires()
Deprecated.
|
int |
getRequiresCount()
A map of string keys to requirements.
|
Map<String,JwtRequirement> |
getRequiresMap()
A map of string keys to requirements.
|
JwtRequirement |
getRequiresOrDefault(String key,
JwtRequirement defaultValue)
A map of string keys to requirements.
|
JwtRequirement |
getRequiresOrThrow(String key)
A map of string keys to requirements.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static FilterStateRule.Builder |
newBuilder() |
static FilterStateRule.Builder |
newBuilder(FilterStateRule prototype) |
FilterStateRule.Builder |
newBuilderForType() |
protected FilterStateRule.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static FilterStateRule |
parseDelimitedFrom(InputStream input) |
static FilterStateRule |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FilterStateRule |
parseFrom(byte[] data) |
static FilterStateRule |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FilterStateRule |
parseFrom(ByteBuffer data) |
static FilterStateRule |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FilterStateRule |
parseFrom(com.google.protobuf.ByteString data) |
static FilterStateRule |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FilterStateRule |
parseFrom(com.google.protobuf.CodedInputStream input) |
static FilterStateRule |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FilterStateRule |
parseFrom(InputStream input) |
static FilterStateRule |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<FilterStateRule> |
parser() |
FilterStateRule.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int REQUIRES_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getName()
The filter state name to retrieve the `Router::StringAccessor` object.
string name = 1 [(.validate.rules) = { ... }getName in interface FilterStateRuleOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The filter state name to retrieve the `Router::StringAccessor` object.
string name = 1 [(.validate.rules) = { ... }getNameBytes in interface FilterStateRuleOrBuilderpublic int getRequiresCount()
FilterStateRuleOrBuilderA map of string keys to requirements. The string key is the string value in the FilterState with the name specified in the *name* field above.
map<string, .envoy.extensions.filters.http.jwt_authn.v4alpha.JwtRequirement> requires = 3;getRequiresCount in interface FilterStateRuleOrBuilderpublic boolean containsRequires(String key)
A map of string keys to requirements. The string key is the string value in the FilterState with the name specified in the *name* field above.
map<string, .envoy.extensions.filters.http.jwt_authn.v4alpha.JwtRequirement> requires = 3;containsRequires in interface FilterStateRuleOrBuilder@Deprecated public Map<String,JwtRequirement> getRequires()
getRequiresMap() instead.getRequires in interface FilterStateRuleOrBuilderpublic Map<String,JwtRequirement> getRequiresMap()
A map of string keys to requirements. The string key is the string value in the FilterState with the name specified in the *name* field above.
map<string, .envoy.extensions.filters.http.jwt_authn.v4alpha.JwtRequirement> requires = 3;getRequiresMap in interface FilterStateRuleOrBuilderpublic JwtRequirement getRequiresOrDefault(String key, JwtRequirement defaultValue)
A map of string keys to requirements. The string key is the string value in the FilterState with the name specified in the *name* field above.
map<string, .envoy.extensions.filters.http.jwt_authn.v4alpha.JwtRequirement> requires = 3;getRequiresOrDefault in interface FilterStateRuleOrBuilderpublic JwtRequirement getRequiresOrThrow(String key)
A map of string keys to requirements. The string key is the string value in the FilterState with the name specified in the *name* field above.
map<string, .envoy.extensions.filters.http.jwt_authn.v4alpha.JwtRequirement> requires = 3;getRequiresOrThrow in interface FilterStateRuleOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static FilterStateRule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FilterStateRule parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FilterStateRule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FilterStateRule parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FilterStateRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FilterStateRule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FilterStateRule parseFrom(InputStream input) throws IOException
IOExceptionpublic static FilterStateRule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static FilterStateRule parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static FilterStateRule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static FilterStateRule parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static FilterStateRule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic FilterStateRule.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static FilterStateRule.Builder newBuilder()
public static FilterStateRule.Builder newBuilder(FilterStateRule prototype)
public FilterStateRule.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected FilterStateRule.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static FilterStateRule getDefaultInstance()
public static com.google.protobuf.Parser<FilterStateRule> parser()
public com.google.protobuf.Parser<FilterStateRule> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public FilterStateRule getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.