public final class JwtRequirement extends com.google.protobuf.GeneratedMessageV3 implements 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
# Example 7: A is optional (if token from A is provided, it must be valid, but also allows
missing token.)
requires_any:
requirements:
- provider_name: provider-A
- allow_missing: {}
# Example 8: A is optional and B is required.
requires_all:
requirements:
- requires_any:
requirements:
- provider_name: provider-A
- allow_missing: {}
- provider_name: provider-B
[#next-free-field: 7]
Protobuf type envoy.extensions.filters.http.jwt_authn.v3.JwtRequirement| Modifier and Type | Class and Description |
|---|---|
static class |
JwtRequirement.Builder
This message specifies a Jwt requirement.
|
static class |
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, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ALLOW_MISSING_FIELD_NUMBER |
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 |
getAllowMissing()
The requirement is satisfied if JWT is missing, but failed if JWT is
presented but invalid.
|
com.google.protobuf.EmptyOrBuilder |
getAllowMissingOrBuilder()
The requirement is satisfied if JWT is missing, but failed if JWT is
presented but invalid.
|
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 JwtRequirement |
getDefaultInstance() |
JwtRequirement |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<JwtRequirement> |
getParserForType() |
ProviderWithAudiences |
getProviderAndAudiences()
Specify a required provider with audiences.
|
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.
|
JwtRequirementAndList |
getRequiresAll()
Specify list of JwtRequirement.
|
JwtRequirementAndListOrBuilder |
getRequiresAllOrBuilder()
Specify list of JwtRequirement.
|
JwtRequirementOrList |
getRequiresAny()
Specify list of JwtRequirement.
|
JwtRequirementOrListOrBuilder |
getRequiresAnyOrBuilder()
Specify list of JwtRequirement.
|
JwtRequirement.RequiresTypeCase |
getRequiresTypeCase() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasAllowMissing()
The requirement is satisfied if JWT is missing, but failed if JWT is
presented but invalid.
|
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 JwtRequirement.Builder |
newBuilder() |
static JwtRequirement.Builder |
newBuilder(JwtRequirement prototype) |
JwtRequirement.Builder |
newBuilderForType() |
protected JwtRequirement.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static JwtRequirement |
parseDelimitedFrom(InputStream input) |
static JwtRequirement |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static JwtRequirement |
parseFrom(byte[] data) |
static JwtRequirement |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static JwtRequirement |
parseFrom(ByteBuffer data) |
static JwtRequirement |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static JwtRequirement |
parseFrom(com.google.protobuf.ByteString data) |
static JwtRequirement |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static JwtRequirement |
parseFrom(com.google.protobuf.CodedInputStream input) |
static JwtRequirement |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static JwtRequirement |
parseFrom(InputStream input) |
static JwtRequirement |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<JwtRequirement> |
parser() |
JwtRequirement.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, internalGetMapField, 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 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 static final int ALLOW_MISSING_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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public JwtRequirement.RequiresTypeCase getRequiresTypeCase()
getRequiresTypeCase in interface JwtRequirementOrBuilderpublic String getProviderName()
Specify a required provider name.
string provider_name = 1;getProviderName in interface JwtRequirementOrBuilderpublic com.google.protobuf.ByteString getProviderNameBytes()
Specify a required provider name.
string provider_name = 1;getProviderNameBytes in interface JwtRequirementOrBuilderpublic boolean hasProviderAndAudiences()
Specify a required provider with audiences.
.envoy.extensions.filters.http.jwt_authn.v3.ProviderWithAudiences provider_and_audiences = 2;hasProviderAndAudiences in interface JwtRequirementOrBuilderpublic ProviderWithAudiences getProviderAndAudiences()
Specify a required provider with audiences.
.envoy.extensions.filters.http.jwt_authn.v3.ProviderWithAudiences provider_and_audiences = 2;getProviderAndAudiences in interface JwtRequirementOrBuilderpublic ProviderWithAudiencesOrBuilder getProviderAndAudiencesOrBuilder()
Specify a required provider with audiences.
.envoy.extensions.filters.http.jwt_authn.v3.ProviderWithAudiences provider_and_audiences = 2;getProviderAndAudiencesOrBuilder in interface JwtRequirementOrBuilderpublic boolean hasRequiresAny()
Specify list of JwtRequirement. Their results are OR-ed. If any one of them passes, the result is passed.
.envoy.extensions.filters.http.jwt_authn.v3.JwtRequirementOrList requires_any = 3;hasRequiresAny in interface JwtRequirementOrBuilderpublic JwtRequirementOrList getRequiresAny()
Specify list of JwtRequirement. Their results are OR-ed. If any one of them passes, the result is passed.
.envoy.extensions.filters.http.jwt_authn.v3.JwtRequirementOrList requires_any = 3;getRequiresAny in interface JwtRequirementOrBuilderpublic JwtRequirementOrListOrBuilder getRequiresAnyOrBuilder()
Specify list of JwtRequirement. Their results are OR-ed. If any one of them passes, the result is passed.
.envoy.extensions.filters.http.jwt_authn.v3.JwtRequirementOrList requires_any = 3;getRequiresAnyOrBuilder in interface 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.extensions.filters.http.jwt_authn.v3.JwtRequirementAndList requires_all = 4;hasRequiresAll in interface JwtRequirementOrBuilderpublic 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.extensions.filters.http.jwt_authn.v3.JwtRequirementAndList requires_all = 4;getRequiresAll in interface JwtRequirementOrBuilderpublic 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.extensions.filters.http.jwt_authn.v3.JwtRequirementAndList requires_all = 4;getRequiresAllOrBuilder in interface 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 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 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 JwtRequirementOrBuilderpublic boolean hasAllowMissing()
The requirement is satisfied if JWT is missing, but failed if JWT is presented but invalid. Similar to allow_missing_or_failed, this is used to only verify JWTs and pass the verified payload to another filter. The different is this mode will reject requests with invalid tokens.
.google.protobuf.Empty allow_missing = 6;hasAllowMissing in interface JwtRequirementOrBuilderpublic com.google.protobuf.Empty getAllowMissing()
The requirement is satisfied if JWT is missing, but failed if JWT is presented but invalid. Similar to allow_missing_or_failed, this is used to only verify JWTs and pass the verified payload to another filter. The different is this mode will reject requests with invalid tokens.
.google.protobuf.Empty allow_missing = 6;getAllowMissing in interface JwtRequirementOrBuilderpublic com.google.protobuf.EmptyOrBuilder getAllowMissingOrBuilder()
The requirement is satisfied if JWT is missing, but failed if JWT is presented but invalid. Similar to allow_missing_or_failed, this is used to only verify JWTs and pass the verified payload to another filter. The different is this mode will reject requests with invalid tokens.
.google.protobuf.Empty allow_missing = 6;getAllowMissingOrBuilder in interface 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 JwtRequirement parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static JwtRequirement parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static JwtRequirement parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static JwtRequirement parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static JwtRequirement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static JwtRequirement parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static JwtRequirement parseFrom(InputStream input) throws IOException
IOExceptionpublic static JwtRequirement parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static JwtRequirement parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static JwtRequirement parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static JwtRequirement parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static JwtRequirement parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic JwtRequirement.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static JwtRequirement.Builder newBuilder()
public static JwtRequirement.Builder newBuilder(JwtRequirement prototype)
public JwtRequirement.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected JwtRequirement.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static JwtRequirement getDefaultInstance()
public static com.google.protobuf.Parser<JwtRequirement> parser()
public com.google.protobuf.Parser<JwtRequirement> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public JwtRequirement getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.