Class ApiKeyAuthPerRoute
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.extensions.filters.http.api_key_auth.v3.ApiKeyAuthPerRoute
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ApiKeyAuthPerRouteOrBuilder,Serializable
public final class ApiKeyAuthPerRoute
extends com.google.protobuf.GeneratedMessageV3
implements ApiKeyAuthPerRouteOrBuilder
API key auth configuration of per route or per virtual host or per route configuration.Protobuf type
envoy.extensions.filters.http.api_key_auth.v3.ApiKeyAuthPerRoute- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAPI key auth configuration of per route or per virtual host or per route configuration.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAllowedClients(int index) A list of clients that are allowed to access the route or vhost.com.google.protobuf.ByteStringgetAllowedClientsBytes(int index) A list of clients that are allowed to access the route or vhost.intA list of clients that are allowed to access the route or vhost.com.google.protobuf.ProtocolStringListA list of clients that are allowed to access the route or vhost.getCredentials(int index) The credentials that are used to authenticate the clients.intThe credentials that are used to authenticate the clients.The credentials that are used to authenticate the clients.getCredentialsOrBuilder(int index) The credentials that are used to authenticate the clients.List<? extends CredentialOrBuilder>The credentials that are used to authenticate the clients.static ApiKeyAuthPerRoutestatic final com.google.protobuf.Descriptors.DescriptorOptional configuration to control what information should be propagated to upstream services.Optional configuration to control what information should be propagated to upstream services.getKeySources(int index) The key sources to fetch the key from the coming request.intThe key sources to fetch the key from the coming request.The key sources to fetch the key from the coming request.getKeySourcesOrBuilder(int index) The key sources to fetch the key from the coming request.List<? extends KeySourceOrBuilder>The key sources to fetch the key from the coming request.com.google.protobuf.Parser<ApiKeyAuthPerRoute>intbooleanOptional configuration to control what information should be propagated to upstream services.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic ApiKeyAuthPerRoute.Builderstatic ApiKeyAuthPerRoute.BuildernewBuilder(ApiKeyAuthPerRoute prototype) protected ApiKeyAuthPerRoute.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static ApiKeyAuthPerRouteparseDelimitedFrom(InputStream input) static ApiKeyAuthPerRouteparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ApiKeyAuthPerRouteparseFrom(byte[] data) static ApiKeyAuthPerRouteparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ApiKeyAuthPerRouteparseFrom(com.google.protobuf.ByteString data) static ApiKeyAuthPerRouteparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ApiKeyAuthPerRouteparseFrom(com.google.protobuf.CodedInputStream input) static ApiKeyAuthPerRouteparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ApiKeyAuthPerRouteparseFrom(InputStream input) static ApiKeyAuthPerRouteparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ApiKeyAuthPerRouteparseFrom(ByteBuffer data) static ApiKeyAuthPerRouteparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ApiKeyAuthPerRoute>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
CREDENTIALS_FIELD_NUMBER
public static final int CREDENTIALS_FIELD_NUMBER- See Also:
-
KEY_SOURCES_FIELD_NUMBER
public static final int KEY_SOURCES_FIELD_NUMBER- See Also:
-
ALLOWED_CLIENTS_FIELD_NUMBER
public static final int ALLOWED_CLIENTS_FIELD_NUMBER- See Also:
-
FORWARDING_FIELD_NUMBER
public static final int FORWARDING_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getCredentialsList
The credentials that are used to authenticate the clients. If this field is non-empty, then the credentials in the filter level configuration will be ignored and the credentials in this configuration will be used.
repeated .envoy.extensions.filters.http.api_key_auth.v3.Credential credentials = 1 [(.udpa.annotations.sensitive) = true];- Specified by:
getCredentialsListin interfaceApiKeyAuthPerRouteOrBuilder
-
getCredentialsOrBuilderList
The credentials that are used to authenticate the clients. If this field is non-empty, then the credentials in the filter level configuration will be ignored and the credentials in this configuration will be used.
repeated .envoy.extensions.filters.http.api_key_auth.v3.Credential credentials = 1 [(.udpa.annotations.sensitive) = true];- Specified by:
getCredentialsOrBuilderListin interfaceApiKeyAuthPerRouteOrBuilder
-
getCredentialsCount
public int getCredentialsCount()The credentials that are used to authenticate the clients. If this field is non-empty, then the credentials in the filter level configuration will be ignored and the credentials in this configuration will be used.
repeated .envoy.extensions.filters.http.api_key_auth.v3.Credential credentials = 1 [(.udpa.annotations.sensitive) = true];- Specified by:
getCredentialsCountin interfaceApiKeyAuthPerRouteOrBuilder
-
getCredentials
The credentials that are used to authenticate the clients. If this field is non-empty, then the credentials in the filter level configuration will be ignored and the credentials in this configuration will be used.
repeated .envoy.extensions.filters.http.api_key_auth.v3.Credential credentials = 1 [(.udpa.annotations.sensitive) = true];- Specified by:
getCredentialsin interfaceApiKeyAuthPerRouteOrBuilder
-
getCredentialsOrBuilder
The credentials that are used to authenticate the clients. If this field is non-empty, then the credentials in the filter level configuration will be ignored and the credentials in this configuration will be used.
repeated .envoy.extensions.filters.http.api_key_auth.v3.Credential credentials = 1 [(.udpa.annotations.sensitive) = true];- Specified by:
getCredentialsOrBuilderin interfaceApiKeyAuthPerRouteOrBuilder
-
getKeySourcesList
The key sources to fetch the key from the coming request. If this field is non-empty, then the key sources in the filter level configuration will be ignored and the key sources in this configuration will be used.
repeated .envoy.extensions.filters.http.api_key_auth.v3.KeySource key_sources = 2;- Specified by:
getKeySourcesListin interfaceApiKeyAuthPerRouteOrBuilder
-
getKeySourcesOrBuilderList
The key sources to fetch the key from the coming request. If this field is non-empty, then the key sources in the filter level configuration will be ignored and the key sources in this configuration will be used.
repeated .envoy.extensions.filters.http.api_key_auth.v3.KeySource key_sources = 2;- Specified by:
getKeySourcesOrBuilderListin interfaceApiKeyAuthPerRouteOrBuilder
-
getKeySourcesCount
public int getKeySourcesCount()The key sources to fetch the key from the coming request. If this field is non-empty, then the key sources in the filter level configuration will be ignored and the key sources in this configuration will be used.
repeated .envoy.extensions.filters.http.api_key_auth.v3.KeySource key_sources = 2;- Specified by:
getKeySourcesCountin interfaceApiKeyAuthPerRouteOrBuilder
-
getKeySources
The key sources to fetch the key from the coming request. If this field is non-empty, then the key sources in the filter level configuration will be ignored and the key sources in this configuration will be used.
repeated .envoy.extensions.filters.http.api_key_auth.v3.KeySource key_sources = 2;- Specified by:
getKeySourcesin interfaceApiKeyAuthPerRouteOrBuilder
-
getKeySourcesOrBuilder
The key sources to fetch the key from the coming request. If this field is non-empty, then the key sources in the filter level configuration will be ignored and the key sources in this configuration will be used.
repeated .envoy.extensions.filters.http.api_key_auth.v3.KeySource key_sources = 2;- Specified by:
getKeySourcesOrBuilderin interfaceApiKeyAuthPerRouteOrBuilder
-
getAllowedClientsList
public com.google.protobuf.ProtocolStringList getAllowedClientsList()A list of clients that are allowed to access the route or vhost. The clients listed here should be subset of the clients listed in the ``credentials`` to provide authorization control after the authentication is successful. If the list is empty, then all authenticated clients are allowed. This provides very limited but simple authorization. If more complex authorization is required, then use the :ref:`HTTP RBAC filter <config_http_filters_rbac>` instead. .. note:: Setting this field and ``credentials`` at the same configuration entry is not an error but also makes no much sense because they provide similar functionality. Please only use one of them at same configuration entry except for the case that you want to share the same credentials list across multiple routes but still use different allowed clients for each route.
repeated string allowed_clients = 3;- Specified by:
getAllowedClientsListin interfaceApiKeyAuthPerRouteOrBuilder- Returns:
- A list containing the allowedClients.
-
getAllowedClientsCount
public int getAllowedClientsCount()A list of clients that are allowed to access the route or vhost. The clients listed here should be subset of the clients listed in the ``credentials`` to provide authorization control after the authentication is successful. If the list is empty, then all authenticated clients are allowed. This provides very limited but simple authorization. If more complex authorization is required, then use the :ref:`HTTP RBAC filter <config_http_filters_rbac>` instead. .. note:: Setting this field and ``credentials`` at the same configuration entry is not an error but also makes no much sense because they provide similar functionality. Please only use one of them at same configuration entry except for the case that you want to share the same credentials list across multiple routes but still use different allowed clients for each route.
repeated string allowed_clients = 3;- Specified by:
getAllowedClientsCountin interfaceApiKeyAuthPerRouteOrBuilder- Returns:
- The count of allowedClients.
-
getAllowedClients
A list of clients that are allowed to access the route or vhost. The clients listed here should be subset of the clients listed in the ``credentials`` to provide authorization control after the authentication is successful. If the list is empty, then all authenticated clients are allowed. This provides very limited but simple authorization. If more complex authorization is required, then use the :ref:`HTTP RBAC filter <config_http_filters_rbac>` instead. .. note:: Setting this field and ``credentials`` at the same configuration entry is not an error but also makes no much sense because they provide similar functionality. Please only use one of them at same configuration entry except for the case that you want to share the same credentials list across multiple routes but still use different allowed clients for each route.
repeated string allowed_clients = 3;- Specified by:
getAllowedClientsin interfaceApiKeyAuthPerRouteOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The allowedClients at the given index.
-
getAllowedClientsBytes
public com.google.protobuf.ByteString getAllowedClientsBytes(int index) A list of clients that are allowed to access the route or vhost. The clients listed here should be subset of the clients listed in the ``credentials`` to provide authorization control after the authentication is successful. If the list is empty, then all authenticated clients are allowed. This provides very limited but simple authorization. If more complex authorization is required, then use the :ref:`HTTP RBAC filter <config_http_filters_rbac>` instead. .. note:: Setting this field and ``credentials`` at the same configuration entry is not an error but also makes no much sense because they provide similar functionality. Please only use one of them at same configuration entry except for the case that you want to share the same credentials list across multiple routes but still use different allowed clients for each route.
repeated string allowed_clients = 3;- Specified by:
getAllowedClientsBytesin interfaceApiKeyAuthPerRouteOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the allowedClients at the given index.
-
hasForwarding
public boolean hasForwarding()Optional configuration to control what information should be propagated to upstream services. If this field is non-empty, then the forwarding information in the filter level configuration will be ignored and the forwarding in this configuration will be used.
.envoy.extensions.filters.http.api_key_auth.v3.Forwarding forwarding = 4;- Specified by:
hasForwardingin interfaceApiKeyAuthPerRouteOrBuilder- Returns:
- Whether the forwarding field is set.
-
getForwarding
Optional configuration to control what information should be propagated to upstream services. If this field is non-empty, then the forwarding information in the filter level configuration will be ignored and the forwarding in this configuration will be used.
.envoy.extensions.filters.http.api_key_auth.v3.Forwarding forwarding = 4;- Specified by:
getForwardingin interfaceApiKeyAuthPerRouteOrBuilder- Returns:
- The forwarding.
-
getForwardingOrBuilder
Optional configuration to control what information should be propagated to upstream services. If this field is non-empty, then the forwarding information in the filter level configuration will be ignored and the forwarding in this configuration will be used.
.envoy.extensions.filters.http.api_key_auth.v3.Forwarding forwarding = 4;- Specified by:
getForwardingOrBuilderin interfaceApiKeyAuthPerRouteOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ApiKeyAuthPerRoute parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ApiKeyAuthPerRoute parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ApiKeyAuthPerRoute parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ApiKeyAuthPerRoute parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ApiKeyAuthPerRoute parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ApiKeyAuthPerRoute parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ApiKeyAuthPerRoute parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ApiKeyAuthPerRoute parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ApiKeyAuthPerRoute parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ApiKeyAuthPerRoute parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ApiKeyAuthPerRoute.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-