Class ApiKeyAuth.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ApiKeyAuth.Builder>
io.envoyproxy.envoy.extensions.filters.http.api_key_auth.v3.ApiKeyAuth.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ApiKeyAuthOrBuilder,Cloneable
- Enclosing class:
- ApiKeyAuth
public static final class ApiKeyAuth.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ApiKeyAuth.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionaddAllCredentials(Iterable<? extends Credential> values) The credentials that are used to authenticate the clients.addAllKeySources(Iterable<? extends KeySource> values) The key sources to fetch the key from the coming request.addCredentials(int index, Credential value) The credentials that are used to authenticate the clients.addCredentials(int index, Credential.Builder builderForValue) The credentials that are used to authenticate the clients.addCredentials(Credential value) The credentials that are used to authenticate the clients.addCredentials(Credential.Builder builderForValue) The credentials that are used to authenticate the clients.The credentials that are used to authenticate the clients.addCredentialsBuilder(int index) The credentials that are used to authenticate the clients.addKeySources(int index, KeySource value) The key sources to fetch the key from the coming request.addKeySources(int index, KeySource.Builder builderForValue) The key sources to fetch the key from the coming request.addKeySources(KeySource value) The key sources to fetch the key from the coming request.addKeySources(KeySource.Builder builderForValue) The key sources to fetch the key from the coming request.The key sources to fetch the key from the coming request.addKeySourcesBuilder(int index) The key sources to fetch the key from the coming request.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The credentials that are used to authenticate the clients.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Optional configuration to control what information should be propagated to upstream services.The key sources to fetch the key from the coming request.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()getCredentials(int index) The credentials that are used to authenticate the clients.getCredentialsBuilder(int index) The credentials that are used to authenticate the clients.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 final com.google.protobuf.Descriptors.Descriptorcom.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.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.getKeySourcesBuilder(int index) The key sources to fetch the key from the coming request.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.booleanOptional configuration to control what information should be propagated to upstream services.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeForwarding(Forwarding value) Optional configuration to control what information should be propagated to upstream services.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(ApiKeyAuth other) final ApiKeyAuth.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeCredentials(int index) The credentials that are used to authenticate the clients.removeKeySources(int index) The key sources to fetch the key from the coming request.setCredentials(int index, Credential value) The credentials that are used to authenticate the clients.setCredentials(int index, Credential.Builder builderForValue) The credentials that are used to authenticate the clients.setForwarding(Forwarding value) Optional configuration to control what information should be propagated to upstream services.setForwarding(Forwarding.Builder builderForValue) Optional configuration to control what information should be propagated to upstream services.setKeySources(int index, KeySource value) The key sources to fetch the key from the coming request.setKeySources(int index, KeySource.Builder builderForValue) The key sources to fetch the key from the coming request.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final ApiKeyAuth.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.Builder<ApiKeyAuth.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiKeyAuth.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ApiKeyAuth.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ApiKeyAuth.Builder>
-
setField
public ApiKeyAuth.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiKeyAuth.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiKeyAuth.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiKeyAuth.Builder>
-
setRepeatedField
public ApiKeyAuth.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiKeyAuth.Builder>
-
addRepeatedField
public ApiKeyAuth.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiKeyAuth.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ApiKeyAuth.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiKeyAuth.Builder>
-
mergeFrom
public ApiKeyAuth.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ApiKeyAuth.Builder>- Throws:
IOException
-
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
-
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
-
setCredentials
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]; -
setCredentials
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]; -
addCredentials
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]; -
addCredentials
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]; -
addCredentials
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]; -
addCredentials
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]; -
addAllCredentials
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]; -
clearCredentials
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]; -
removeCredentials
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]; -
getCredentialsBuilder
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]; -
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
-
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
-
addCredentialsBuilder
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]; -
addCredentialsBuilder
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]; -
getCredentialsBuilderList
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]; -
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
-
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
-
setKeySources
The key sources to fetch the key from the coming request.
repeated .envoy.extensions.filters.http.api_key_auth.v3.KeySource key_sources = 2; -
setKeySources
The key sources to fetch the key from the coming request.
repeated .envoy.extensions.filters.http.api_key_auth.v3.KeySource key_sources = 2; -
addKeySources
The key sources to fetch the key from the coming request.
repeated .envoy.extensions.filters.http.api_key_auth.v3.KeySource key_sources = 2; -
addKeySources
The key sources to fetch the key from the coming request.
repeated .envoy.extensions.filters.http.api_key_auth.v3.KeySource key_sources = 2; -
addKeySources
The key sources to fetch the key from the coming request.
repeated .envoy.extensions.filters.http.api_key_auth.v3.KeySource key_sources = 2; -
addKeySources
The key sources to fetch the key from the coming request.
repeated .envoy.extensions.filters.http.api_key_auth.v3.KeySource key_sources = 2; -
addAllKeySources
The key sources to fetch the key from the coming request.
repeated .envoy.extensions.filters.http.api_key_auth.v3.KeySource key_sources = 2; -
clearKeySources
The key sources to fetch the key from the coming request.
repeated .envoy.extensions.filters.http.api_key_auth.v3.KeySource key_sources = 2; -
removeKeySources
The key sources to fetch the key from the coming request.
repeated .envoy.extensions.filters.http.api_key_auth.v3.KeySource key_sources = 2; -
getKeySourcesBuilder
The key sources to fetch the key from the coming request.
repeated .envoy.extensions.filters.http.api_key_auth.v3.KeySource key_sources = 2; -
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
-
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
-
addKeySourcesBuilder
The key sources to fetch the key from the coming request.
repeated .envoy.extensions.filters.http.api_key_auth.v3.KeySource key_sources = 2; -
addKeySourcesBuilder
The key sources to fetch the key from the coming request.
repeated .envoy.extensions.filters.http.api_key_auth.v3.KeySource key_sources = 2; -
getKeySourcesBuilderList
The key sources to fetch the key from the coming request.
repeated .envoy.extensions.filters.http.api_key_auth.v3.KeySource key_sources = 2; -
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.
-
setForwarding
Optional configuration to control what information should be propagated to upstream services.
.envoy.extensions.filters.http.api_key_auth.v3.Forwarding forwarding = 3; -
setForwarding
Optional configuration to control what information should be propagated to upstream services.
.envoy.extensions.filters.http.api_key_auth.v3.Forwarding forwarding = 3; -
mergeForwarding
Optional configuration to control what information should be propagated to upstream services.
.envoy.extensions.filters.http.api_key_auth.v3.Forwarding forwarding = 3; -
clearForwarding
Optional configuration to control what information should be propagated to upstream services.
.envoy.extensions.filters.http.api_key_auth.v3.Forwarding forwarding = 3; -
getForwardingBuilder
Optional configuration to control what information should be propagated to upstream services.
.envoy.extensions.filters.http.api_key_auth.v3.Forwarding forwarding = 3; -
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
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiKeyAuth.Builder>
-
mergeUnknownFields
public final ApiKeyAuth.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ApiKeyAuth.Builder>
-