public static final class Config.JwtRequirement extends com.google.protobuf.GeneratedMessageV3 implements Config.JwtRequirementOrBuilder
This message specifies a Jwt requirement. An empty message means JWT verification is not
required. Here are some config examples:
.. code-block:: yaml
# Example 1: not required with an empty message
# Example 2: require A
provider_name: "provider-A"
# Example 3: require A or B
requires_any:
requirements:
- provider_name: "provider-A"
- provider_name: "provider-B"
# Example 4: require A and B
requires_all:
requirements:
- provider_name: "provider-A"
- provider_name: "provider-B"
# Example 5: require A and (B or C)
requires_all:
requirements:
- provider_name: "provider-A"
- requires_any:
requirements:
- provider_name: "provider-B"
- provider_name: "provider-C"
# Example 6: require A or (B and C)
requires_any:
requirements:
- provider_name: "provider-A"
- requires_all:
requirements:
- provider_name: "provider-B"
- provider_name: "provider-C"
Protobuf type envoy.config.filter.http.jwt_authn.v2alpha.JwtRequirement| Modifier and Type | Class and Description |
|---|---|
static class |
Config.JwtRequirement.Builder
This message specifies a Jwt requirement.
|
static class |
Config.JwtRequirement.RequiresTypeCase |
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| Modifier and Type | Field and Description |
|---|---|
static int |
ALLOW_MISSING_OR_FAILED_FIELD_NUMBER |
static int |
PROVIDER_AND_AUDIENCES_FIELD_NUMBER |
static int |
PROVIDER_NAME_FIELD_NUMBER |
static int |
REQUIRES_ALL_FIELD_NUMBER |
static int |
REQUIRES_ANY_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
com.google.protobuf.Empty |
getAllowMissingOrFailed()
The requirement is always satisfied even if JWT is missing or the JWT
verification fails.
|
com.google.protobuf.EmptyOrBuilder |
getAllowMissingOrFailedOrBuilder()
The requirement is always satisfied even if JWT is missing or the JWT
verification fails.
|
static Config.JwtRequirement |
getDefaultInstance() |
Config.JwtRequirement |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<Config.JwtRequirement> |
getParserForType() |
Config.ProviderWithAudiences |
getProviderAndAudiences()
Specify a required provider with audiences.
|
Config.ProviderWithAudiencesOrBuilder |
getProviderAndAudiencesOrBuilder()
Specify a required provider with audiences.
|
String |
getProviderName()
Specify a required provider name.
|
com.google.protobuf.ByteString |
getProviderNameBytes()
Specify a required provider name.
|
Config.JwtRequirementAndList |
getRequiresAll()
Specify list of JwtRequirement.
|
Config.JwtRequirementAndListOrBuilder |
getRequiresAllOrBuilder()
Specify list of JwtRequirement.
|
Config.JwtRequirementOrList |
getRequiresAny()
Specify list of JwtRequirement.
|
Config.JwtRequirementOrListOrBuilder |
getRequiresAnyOrBuilder()
Specify list of JwtRequirement.
|
Config.JwtRequirement.RequiresTypeCase |
getRequiresTypeCase() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasAllowMissingOrFailed()
The requirement is always satisfied even if JWT is missing or the JWT
verification fails.
|
int |
hashCode() |
boolean |
hasProviderAndAudiences()
Specify a required provider with audiences.
|
boolean |
hasRequiresAll()
Specify list of JwtRequirement.
|
boolean |
hasRequiresAny()
Specify list of JwtRequirement.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Config.JwtRequirement.Builder |
newBuilder() |
static Config.JwtRequirement.Builder |
newBuilder(Config.JwtRequirement prototype) |
Config.JwtRequirement.Builder |
newBuilderForType() |
protected Config.JwtRequirement.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Config.JwtRequirement |
parseDelimitedFrom(InputStream input) |
static Config.JwtRequirement |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Config.JwtRequirement |
parseFrom(byte[] data) |
static Config.JwtRequirement |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Config.JwtRequirement |
parseFrom(ByteBuffer data) |
static Config.JwtRequirement |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Config.JwtRequirement |
parseFrom(com.google.protobuf.ByteString data) |
static Config.JwtRequirement |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Config.JwtRequirement |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Config.JwtRequirement |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Config.JwtRequirement |
parseFrom(InputStream input) |
static Config.JwtRequirement |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Config.JwtRequirement> |
parser() |
Config.JwtRequirement.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, 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 PROVIDER_NAME_FIELD_NUMBER
public static final int PROVIDER_AND_AUDIENCES_FIELD_NUMBER
public static final int REQUIRES_ANY_FIELD_NUMBER
public static final int REQUIRES_ALL_FIELD_NUMBER
public static final int ALLOW_MISSING_OR_FAILED_FIELD_NUMBER
public 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public Config.JwtRequirement.RequiresTypeCase getRequiresTypeCase()
getRequiresTypeCase in interface Config.JwtRequirementOrBuilderpublic String getProviderName()
Specify a required provider name.
string provider_name = 1;getProviderName in interface Config.JwtRequirementOrBuilderpublic com.google.protobuf.ByteString getProviderNameBytes()
Specify a required provider name.
string provider_name = 1;getProviderNameBytes in interface Config.JwtRequirementOrBuilderpublic boolean hasProviderAndAudiences()
Specify a required provider with audiences.
.envoy.config.filter.http.jwt_authn.v2alpha.ProviderWithAudiences provider_and_audiences = 2;hasProviderAndAudiences in interface Config.JwtRequirementOrBuilderpublic Config.ProviderWithAudiences getProviderAndAudiences()
Specify a required provider with audiences.
.envoy.config.filter.http.jwt_authn.v2alpha.ProviderWithAudiences provider_and_audiences = 2;getProviderAndAudiences in interface Config.JwtRequirementOrBuilderpublic Config.ProviderWithAudiencesOrBuilder getProviderAndAudiencesOrBuilder()
Specify a required provider with audiences.
.envoy.config.filter.http.jwt_authn.v2alpha.ProviderWithAudiences provider_and_audiences = 2;getProviderAndAudiencesOrBuilder in interface Config.JwtRequirementOrBuilderpublic boolean hasRequiresAny()
Specify list of JwtRequirement. Their results are OR-ed. If any one of them passes, the result is passed.
.envoy.config.filter.http.jwt_authn.v2alpha.JwtRequirementOrList requires_any = 3;hasRequiresAny in interface Config.JwtRequirementOrBuilderpublic Config.JwtRequirementOrList getRequiresAny()
Specify list of JwtRequirement. Their results are OR-ed. If any one of them passes, the result is passed.
.envoy.config.filter.http.jwt_authn.v2alpha.JwtRequirementOrList requires_any = 3;getRequiresAny in interface Config.JwtRequirementOrBuilderpublic Config.JwtRequirementOrListOrBuilder getRequiresAnyOrBuilder()
Specify list of JwtRequirement. Their results are OR-ed. If any one of them passes, the result is passed.
.envoy.config.filter.http.jwt_authn.v2alpha.JwtRequirementOrList requires_any = 3;getRequiresAnyOrBuilder in interface Config.JwtRequirementOrBuilderpublic boolean hasRequiresAll()
Specify list of JwtRequirement. Their results are AND-ed. All of them must pass, if one of them fails or missing, it fails.
.envoy.config.filter.http.jwt_authn.v2alpha.JwtRequirementAndList requires_all = 4;hasRequiresAll in interface Config.JwtRequirementOrBuilderpublic Config.JwtRequirementAndList getRequiresAll()
Specify list of JwtRequirement. Their results are AND-ed. All of them must pass, if one of them fails or missing, it fails.
.envoy.config.filter.http.jwt_authn.v2alpha.JwtRequirementAndList requires_all = 4;getRequiresAll in interface Config.JwtRequirementOrBuilderpublic Config.JwtRequirementAndListOrBuilder getRequiresAllOrBuilder()
Specify list of JwtRequirement. Their results are AND-ed. All of them must pass, if one of them fails or missing, it fails.
.envoy.config.filter.http.jwt_authn.v2alpha.JwtRequirementAndList requires_all = 4;getRequiresAllOrBuilder in interface Config.JwtRequirementOrBuilderpublic boolean hasAllowMissingOrFailed()
The requirement is always satisfied even if JWT is missing or the JWT verification fails. A typical usage is: this filter is used to only verify JWTs and pass the verified JWT payloads to another filter, the other filter will make decision. In this mode, all JWT tokens will be verified.
.google.protobuf.Empty allow_missing_or_failed = 5;hasAllowMissingOrFailed in interface Config.JwtRequirementOrBuilderpublic com.google.protobuf.Empty getAllowMissingOrFailed()
The requirement is always satisfied even if JWT is missing or the JWT verification fails. A typical usage is: this filter is used to only verify JWTs and pass the verified JWT payloads to another filter, the other filter will make decision. In this mode, all JWT tokens will be verified.
.google.protobuf.Empty allow_missing_or_failed = 5;getAllowMissingOrFailed in interface Config.JwtRequirementOrBuilderpublic com.google.protobuf.EmptyOrBuilder getAllowMissingOrFailedOrBuilder()
The requirement is always satisfied even if JWT is missing or the JWT verification fails. A typical usage is: this filter is used to only verify JWTs and pass the verified JWT payloads to another filter, the other filter will make decision. In this mode, all JWT tokens will be verified.
.google.protobuf.Empty allow_missing_or_failed = 5;getAllowMissingOrFailedOrBuilder in interface Config.JwtRequirementOrBuilderpublic 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 Config.JwtRequirement parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Config.JwtRequirement parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Config.JwtRequirement parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Config.JwtRequirement parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Config.JwtRequirement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Config.JwtRequirement parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Config.JwtRequirement parseFrom(InputStream input) throws IOException
IOExceptionpublic static Config.JwtRequirement parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Config.JwtRequirement parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Config.JwtRequirement parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Config.JwtRequirement parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Config.JwtRequirement parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Config.JwtRequirement.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Config.JwtRequirement.Builder newBuilder()
public static Config.JwtRequirement.Builder newBuilder(Config.JwtRequirement prototype)
public Config.JwtRequirement.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Config.JwtRequirement.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Config.JwtRequirement getDefaultInstance()
public static com.google.protobuf.Parser<Config.JwtRequirement> parser()
public com.google.protobuf.Parser<Config.JwtRequirement> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Config.JwtRequirement getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018 The Envoy Project. All rights reserved.