Class ApiKeyAuth
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.ApiKeyAuth
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ApiKeyAuthOrBuilder,Serializable
public final class ApiKeyAuth
extends com.google.protobuf.GeneratedMessageV3
implements ApiKeyAuthOrBuilder
API Key HTTP authentication.
For example, the following configuration configures the filter to authenticate the clients using
the API key from the header ``X-API-KEY``. And only the clients with the key ``real-key`` are
considered as authenticated. The client information is configured to be forwarded
in the header ``x-client-id``.
.. code-block:: yaml
credentials:
- key: real-key
client: user
key_sources:
- header: "X-API-KEY"
forwarding:
header: "x-client-id"
hide_credentials: false
Protobuf type envoy.extensions.filters.http.api_key_auth.v3.ApiKeyAuth- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAPI Key HTTP authentication.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 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 TypeMethodDescriptionbooleangetCredentials(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 ApiKeyAuthstatic 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<ApiKeyAuth>intbooleanOptional configuration to control what information should be propagated to upstream services.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic ApiKeyAuth.Builderstatic ApiKeyAuth.BuildernewBuilder(ApiKeyAuth prototype) protected ApiKeyAuth.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static ApiKeyAuthparseDelimitedFrom(InputStream input) static ApiKeyAuthparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ApiKeyAuthparseFrom(byte[] data) static ApiKeyAuthparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ApiKeyAuthparseFrom(com.google.protobuf.ByteString data) static ApiKeyAuthparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ApiKeyAuthparseFrom(com.google.protobuf.CodedInputStream input) static ApiKeyAuthparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ApiKeyAuthparseFrom(InputStream input) static ApiKeyAuthparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ApiKeyAuthparseFrom(ByteBuffer data) static ApiKeyAuthparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ApiKeyAuth>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:
-
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.
repeated .envoy.extensions.filters.http.api_key_auth.v3.Credential credentials = 1 [(.udpa.annotations.sensitive) = true];- Specified by:
getCredentialsListin interfaceApiKeyAuthOrBuilder
-
getCredentialsOrBuilderList
The credentials that are used to authenticate the clients.
repeated .envoy.extensions.filters.http.api_key_auth.v3.Credential credentials = 1 [(.udpa.annotations.sensitive) = true];- Specified by:
getCredentialsOrBuilderListin interfaceApiKeyAuthOrBuilder
-
getCredentialsCount
public int getCredentialsCount()The credentials that are used to authenticate the clients.
repeated .envoy.extensions.filters.http.api_key_auth.v3.Credential credentials = 1 [(.udpa.annotations.sensitive) = true];- Specified by:
getCredentialsCountin interfaceApiKeyAuthOrBuilder
-
getCredentials
The credentials that are used to authenticate the clients.
repeated .envoy.extensions.filters.http.api_key_auth.v3.Credential credentials = 1 [(.udpa.annotations.sensitive) = true];- Specified by:
getCredentialsin interfaceApiKeyAuthOrBuilder
-
getCredentialsOrBuilder
The credentials that are used to authenticate the clients.
repeated .envoy.extensions.filters.http.api_key_auth.v3.Credential credentials = 1 [(.udpa.annotations.sensitive) = true];- Specified by:
getCredentialsOrBuilderin interfaceApiKeyAuthOrBuilder
-
getKeySourcesList
The key sources to fetch the key from the coming request.
repeated .envoy.extensions.filters.http.api_key_auth.v3.KeySource key_sources = 2;- Specified by:
getKeySourcesListin interfaceApiKeyAuthOrBuilder
-
getKeySourcesOrBuilderList
The key sources to fetch the key from the coming request.
repeated .envoy.extensions.filters.http.api_key_auth.v3.KeySource key_sources = 2;- Specified by:
getKeySourcesOrBuilderListin interfaceApiKeyAuthOrBuilder
-
getKeySourcesCount
public int getKeySourcesCount()The key sources to fetch the key from the coming request.
repeated .envoy.extensions.filters.http.api_key_auth.v3.KeySource key_sources = 2;- Specified by:
getKeySourcesCountin interfaceApiKeyAuthOrBuilder
-
getKeySources
The key sources to fetch the key from the coming request.
repeated .envoy.extensions.filters.http.api_key_auth.v3.KeySource key_sources = 2;- Specified by:
getKeySourcesin interfaceApiKeyAuthOrBuilder
-
getKeySourcesOrBuilder
The key sources to fetch the key from the coming request.
repeated .envoy.extensions.filters.http.api_key_auth.v3.KeySource key_sources = 2;- Specified by:
getKeySourcesOrBuilderin interfaceApiKeyAuthOrBuilder
-
hasForwarding
public boolean hasForwarding()Optional configuration to control what information should be propagated to upstream services.
.envoy.extensions.filters.http.api_key_auth.v3.Forwarding forwarding = 3;- Specified by:
hasForwardingin interfaceApiKeyAuthOrBuilder- Returns:
- Whether the forwarding field is set.
-
getForwarding
Optional configuration to control what information should be propagated to upstream services.
.envoy.extensions.filters.http.api_key_auth.v3.Forwarding forwarding = 3;- Specified by:
getForwardingin interfaceApiKeyAuthOrBuilder- Returns:
- The forwarding.
-
getForwardingOrBuilder
Optional configuration to control what information should be propagated to upstream services.
.envoy.extensions.filters.http.api_key_auth.v3.Forwarding forwarding = 3;- Specified by:
getForwardingOrBuilderin interfaceApiKeyAuthOrBuilder
-
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 ApiKeyAuth parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ApiKeyAuth parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ApiKeyAuth parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ApiKeyAuth parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ApiKeyAuth parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ApiKeyAuth parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ApiKeyAuth parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ApiKeyAuth parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ApiKeyAuth 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 ApiKeyAuth.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
-