Package io.envoyproxy.envoy.api.v2.auth
Class CommonTlsContext
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.api.v2.auth.CommonTlsContext
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CommonTlsContextOrBuilder,Serializable
public final class CommonTlsContext extends com.google.protobuf.GeneratedMessageV3 implements CommonTlsContextOrBuilder
TLS context shared by both client and server TLS contexts. [#next-free-field: 9]
Protobuf typeenvoy.api.v2.auth.CommonTlsContext- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCommonTlsContext.BuilderTLS context shared by both client and server TLS contexts.static classCommonTlsContext.CombinedCertificateValidationContextProtobuf typeenvoy.api.v2.auth.CommonTlsContext.CombinedCertificateValidationContextstatic interfaceCommonTlsContext.CombinedCertificateValidationContextOrBuilderstatic classCommonTlsContext.ValidationContextTypeCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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
-
-
Field Summary
Fields Modifier and Type Field Description static intALPN_PROTOCOLS_FIELD_NUMBERstatic intCOMBINED_VALIDATION_CONTEXT_FIELD_NUMBERstatic intTLS_CERTIFICATE_SDS_SECRET_CONFIGS_FIELD_NUMBERstatic intTLS_CERTIFICATES_FIELD_NUMBERstatic intTLS_PARAMS_FIELD_NUMBERstatic intVALIDATION_CONTEXT_FIELD_NUMBERstatic intVALIDATION_CONTEXT_SDS_SECRET_CONFIG_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetAlpnProtocols(int index)Supplies the list of ALPN protocols that the listener should expose.com.google.protobuf.ByteStringgetAlpnProtocolsBytes(int index)Supplies the list of ALPN protocols that the listener should expose.intgetAlpnProtocolsCount()Supplies the list of ALPN protocols that the listener should expose.com.google.protobuf.ProtocolStringListgetAlpnProtocolsList()Supplies the list of ALPN protocols that the listener should expose.CommonTlsContext.CombinedCertificateValidationContextgetCombinedValidationContext()Combined certificate validation context holds a default CertificateValidationContext and SDS config.CommonTlsContext.CombinedCertificateValidationContextOrBuildergetCombinedValidationContextOrBuilder()Combined certificate validation context holds a default CertificateValidationContext and SDS config.static CommonTlsContextgetDefaultInstance()CommonTlsContextgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Parser<CommonTlsContext>getParserForType()intgetSerializedSize()TlsCertificategetTlsCertificates(int index):ref:`Multiple TLS certificates <arch_overview_ssl_cert_select>` can be associated with the same context to allow both RSA and ECDSA certificates.intgetTlsCertificatesCount():ref:`Multiple TLS certificates <arch_overview_ssl_cert_select>` can be associated with the same context to allow both RSA and ECDSA certificates.SdsSecretConfiggetTlsCertificateSdsSecretConfigs(int index)Configs for fetching TLS certificates via SDS API.intgetTlsCertificateSdsSecretConfigsCount()Configs for fetching TLS certificates via SDS API.List<SdsSecretConfig>getTlsCertificateSdsSecretConfigsList()Configs for fetching TLS certificates via SDS API.SdsSecretConfigOrBuildergetTlsCertificateSdsSecretConfigsOrBuilder(int index)Configs for fetching TLS certificates via SDS API.List<? extends SdsSecretConfigOrBuilder>getTlsCertificateSdsSecretConfigsOrBuilderList()Configs for fetching TLS certificates via SDS API.List<TlsCertificate>getTlsCertificatesList():ref:`Multiple TLS certificates <arch_overview_ssl_cert_select>` can be associated with the same context to allow both RSA and ECDSA certificates.TlsCertificateOrBuildergetTlsCertificatesOrBuilder(int index):ref:`Multiple TLS certificates <arch_overview_ssl_cert_select>` can be associated with the same context to allow both RSA and ECDSA certificates.List<? extends TlsCertificateOrBuilder>getTlsCertificatesOrBuilderList():ref:`Multiple TLS certificates <arch_overview_ssl_cert_select>` can be associated with the same context to allow both RSA and ECDSA certificates.TlsParametersgetTlsParams()TLS protocol versions, cipher suites etc.TlsParametersOrBuildergetTlsParamsOrBuilder()TLS protocol versions, cipher suites etc.com.google.protobuf.UnknownFieldSetgetUnknownFields()CertificateValidationContextgetValidationContext()How to validate peer certificates.CertificateValidationContextOrBuildergetValidationContextOrBuilder()How to validate peer certificates.SdsSecretConfiggetValidationContextSdsSecretConfig()Config for fetching validation context via SDS API.SdsSecretConfigOrBuildergetValidationContextSdsSecretConfigOrBuilder()Config for fetching validation context via SDS API.CommonTlsContext.ValidationContextTypeCasegetValidationContextTypeCase()booleanhasCombinedValidationContext()Combined certificate validation context holds a default CertificateValidationContext and SDS config.inthashCode()booleanhasTlsParams()TLS protocol versions, cipher suites etc.booleanhasValidationContext()How to validate peer certificates.booleanhasValidationContextSdsSecretConfig()Config for fetching validation context via SDS API.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static CommonTlsContext.BuildernewBuilder()static CommonTlsContext.BuildernewBuilder(CommonTlsContext prototype)CommonTlsContext.BuildernewBuilderForType()protected CommonTlsContext.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static CommonTlsContextparseDelimitedFrom(InputStream input)static CommonTlsContextparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CommonTlsContextparseFrom(byte[] data)static CommonTlsContextparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CommonTlsContextparseFrom(com.google.protobuf.ByteString data)static CommonTlsContextparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CommonTlsContextparseFrom(com.google.protobuf.CodedInputStream input)static CommonTlsContextparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CommonTlsContextparseFrom(InputStream input)static CommonTlsContextparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CommonTlsContextparseFrom(ByteBuffer data)static CommonTlsContextparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<CommonTlsContext>parser()CommonTlsContext.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
TLS_PARAMS_FIELD_NUMBER
public static final int TLS_PARAMS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TLS_CERTIFICATES_FIELD_NUMBER
public static final int TLS_CERTIFICATES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TLS_CERTIFICATE_SDS_SECRET_CONFIGS_FIELD_NUMBER
public static final int TLS_CERTIFICATE_SDS_SECRET_CONFIGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VALIDATION_CONTEXT_FIELD_NUMBER
public static final int VALIDATION_CONTEXT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VALIDATION_CONTEXT_SDS_SECRET_CONFIG_FIELD_NUMBER
public static final int VALIDATION_CONTEXT_SDS_SECRET_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
COMBINED_VALIDATION_CONTEXT_FIELD_NUMBER
public static final int COMBINED_VALIDATION_CONTEXT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ALPN_PROTOCOLS_FIELD_NUMBER
public static final int ALPN_PROTOCOLS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin 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
-
getValidationContextTypeCase
public CommonTlsContext.ValidationContextTypeCase getValidationContextTypeCase()
- Specified by:
getValidationContextTypeCasein interfaceCommonTlsContextOrBuilder
-
hasTlsParams
public boolean hasTlsParams()
TLS protocol versions, cipher suites etc.
.envoy.api.v2.auth.TlsParameters tls_params = 1;- Specified by:
hasTlsParamsin interfaceCommonTlsContextOrBuilder- Returns:
- Whether the tlsParams field is set.
-
getTlsParams
public TlsParameters getTlsParams()
TLS protocol versions, cipher suites etc.
.envoy.api.v2.auth.TlsParameters tls_params = 1;- Specified by:
getTlsParamsin interfaceCommonTlsContextOrBuilder- Returns:
- The tlsParams.
-
getTlsParamsOrBuilder
public TlsParametersOrBuilder getTlsParamsOrBuilder()
TLS protocol versions, cipher suites etc.
.envoy.api.v2.auth.TlsParameters tls_params = 1;- Specified by:
getTlsParamsOrBuilderin interfaceCommonTlsContextOrBuilder
-
getTlsCertificatesList
public List<TlsCertificate> getTlsCertificatesList()
:ref:`Multiple TLS certificates <arch_overview_ssl_cert_select>` can be associated with the same context to allow both RSA and ECDSA certificates. Only a single TLS certificate is supported in client contexts. In server contexts, the first RSA certificate is used for clients that only support RSA and the first ECDSA certificate is used for clients that support ECDSA.
repeated .envoy.api.v2.auth.TlsCertificate tls_certificates = 2;- Specified by:
getTlsCertificatesListin interfaceCommonTlsContextOrBuilder
-
getTlsCertificatesOrBuilderList
public List<? extends TlsCertificateOrBuilder> getTlsCertificatesOrBuilderList()
:ref:`Multiple TLS certificates <arch_overview_ssl_cert_select>` can be associated with the same context to allow both RSA and ECDSA certificates. Only a single TLS certificate is supported in client contexts. In server contexts, the first RSA certificate is used for clients that only support RSA and the first ECDSA certificate is used for clients that support ECDSA.
repeated .envoy.api.v2.auth.TlsCertificate tls_certificates = 2;- Specified by:
getTlsCertificatesOrBuilderListin interfaceCommonTlsContextOrBuilder
-
getTlsCertificatesCount
public int getTlsCertificatesCount()
:ref:`Multiple TLS certificates <arch_overview_ssl_cert_select>` can be associated with the same context to allow both RSA and ECDSA certificates. Only a single TLS certificate is supported in client contexts. In server contexts, the first RSA certificate is used for clients that only support RSA and the first ECDSA certificate is used for clients that support ECDSA.
repeated .envoy.api.v2.auth.TlsCertificate tls_certificates = 2;- Specified by:
getTlsCertificatesCountin interfaceCommonTlsContextOrBuilder
-
getTlsCertificates
public TlsCertificate getTlsCertificates(int index)
:ref:`Multiple TLS certificates <arch_overview_ssl_cert_select>` can be associated with the same context to allow both RSA and ECDSA certificates. Only a single TLS certificate is supported in client contexts. In server contexts, the first RSA certificate is used for clients that only support RSA and the first ECDSA certificate is used for clients that support ECDSA.
repeated .envoy.api.v2.auth.TlsCertificate tls_certificates = 2;- Specified by:
getTlsCertificatesin interfaceCommonTlsContextOrBuilder
-
getTlsCertificatesOrBuilder
public TlsCertificateOrBuilder getTlsCertificatesOrBuilder(int index)
:ref:`Multiple TLS certificates <arch_overview_ssl_cert_select>` can be associated with the same context to allow both RSA and ECDSA certificates. Only a single TLS certificate is supported in client contexts. In server contexts, the first RSA certificate is used for clients that only support RSA and the first ECDSA certificate is used for clients that support ECDSA.
repeated .envoy.api.v2.auth.TlsCertificate tls_certificates = 2;- Specified by:
getTlsCertificatesOrBuilderin interfaceCommonTlsContextOrBuilder
-
getTlsCertificateSdsSecretConfigsList
public List<SdsSecretConfig> getTlsCertificateSdsSecretConfigsList()
Configs for fetching TLS certificates via SDS API.
repeated .envoy.api.v2.auth.SdsSecretConfig tls_certificate_sds_secret_configs = 6 [(.validate.rules) = { ... }- Specified by:
getTlsCertificateSdsSecretConfigsListin interfaceCommonTlsContextOrBuilder
-
getTlsCertificateSdsSecretConfigsOrBuilderList
public List<? extends SdsSecretConfigOrBuilder> getTlsCertificateSdsSecretConfigsOrBuilderList()
Configs for fetching TLS certificates via SDS API.
repeated .envoy.api.v2.auth.SdsSecretConfig tls_certificate_sds_secret_configs = 6 [(.validate.rules) = { ... }- Specified by:
getTlsCertificateSdsSecretConfigsOrBuilderListin interfaceCommonTlsContextOrBuilder
-
getTlsCertificateSdsSecretConfigsCount
public int getTlsCertificateSdsSecretConfigsCount()
Configs for fetching TLS certificates via SDS API.
repeated .envoy.api.v2.auth.SdsSecretConfig tls_certificate_sds_secret_configs = 6 [(.validate.rules) = { ... }- Specified by:
getTlsCertificateSdsSecretConfigsCountin interfaceCommonTlsContextOrBuilder
-
getTlsCertificateSdsSecretConfigs
public SdsSecretConfig getTlsCertificateSdsSecretConfigs(int index)
Configs for fetching TLS certificates via SDS API.
repeated .envoy.api.v2.auth.SdsSecretConfig tls_certificate_sds_secret_configs = 6 [(.validate.rules) = { ... }- Specified by:
getTlsCertificateSdsSecretConfigsin interfaceCommonTlsContextOrBuilder
-
getTlsCertificateSdsSecretConfigsOrBuilder
public SdsSecretConfigOrBuilder getTlsCertificateSdsSecretConfigsOrBuilder(int index)
Configs for fetching TLS certificates via SDS API.
repeated .envoy.api.v2.auth.SdsSecretConfig tls_certificate_sds_secret_configs = 6 [(.validate.rules) = { ... }- Specified by:
getTlsCertificateSdsSecretConfigsOrBuilderin interfaceCommonTlsContextOrBuilder
-
hasValidationContext
public boolean hasValidationContext()
How to validate peer certificates.
.envoy.api.v2.auth.CertificateValidationContext validation_context = 3;- Specified by:
hasValidationContextin interfaceCommonTlsContextOrBuilder- Returns:
- Whether the validationContext field is set.
-
getValidationContext
public CertificateValidationContext getValidationContext()
How to validate peer certificates.
.envoy.api.v2.auth.CertificateValidationContext validation_context = 3;- Specified by:
getValidationContextin interfaceCommonTlsContextOrBuilder- Returns:
- The validationContext.
-
getValidationContextOrBuilder
public CertificateValidationContextOrBuilder getValidationContextOrBuilder()
How to validate peer certificates.
.envoy.api.v2.auth.CertificateValidationContext validation_context = 3;- Specified by:
getValidationContextOrBuilderin interfaceCommonTlsContextOrBuilder
-
hasValidationContextSdsSecretConfig
public boolean hasValidationContextSdsSecretConfig()
Config for fetching validation context via SDS API.
.envoy.api.v2.auth.SdsSecretConfig validation_context_sds_secret_config = 7;- Specified by:
hasValidationContextSdsSecretConfigin interfaceCommonTlsContextOrBuilder- Returns:
- Whether the validationContextSdsSecretConfig field is set.
-
getValidationContextSdsSecretConfig
public SdsSecretConfig getValidationContextSdsSecretConfig()
Config for fetching validation context via SDS API.
.envoy.api.v2.auth.SdsSecretConfig validation_context_sds_secret_config = 7;- Specified by:
getValidationContextSdsSecretConfigin interfaceCommonTlsContextOrBuilder- Returns:
- The validationContextSdsSecretConfig.
-
getValidationContextSdsSecretConfigOrBuilder
public SdsSecretConfigOrBuilder getValidationContextSdsSecretConfigOrBuilder()
Config for fetching validation context via SDS API.
.envoy.api.v2.auth.SdsSecretConfig validation_context_sds_secret_config = 7;- Specified by:
getValidationContextSdsSecretConfigOrBuilderin interfaceCommonTlsContextOrBuilder
-
hasCombinedValidationContext
public boolean hasCombinedValidationContext()
Combined certificate validation context holds a default CertificateValidationContext and SDS config. When SDS server returns dynamic CertificateValidationContext, both dynamic and default CertificateValidationContext are merged into a new CertificateValidationContext for validation. This merge is done by Message::MergeFrom(), so dynamic CertificateValidationContext overwrites singular fields in default CertificateValidationContext, and concatenates repeated fields to default CertificateValidationContext, and logical OR is applied to boolean fields.
.envoy.api.v2.auth.CommonTlsContext.CombinedCertificateValidationContext combined_validation_context = 8;- Specified by:
hasCombinedValidationContextin interfaceCommonTlsContextOrBuilder- Returns:
- Whether the combinedValidationContext field is set.
-
getCombinedValidationContext
public CommonTlsContext.CombinedCertificateValidationContext getCombinedValidationContext()
Combined certificate validation context holds a default CertificateValidationContext and SDS config. When SDS server returns dynamic CertificateValidationContext, both dynamic and default CertificateValidationContext are merged into a new CertificateValidationContext for validation. This merge is done by Message::MergeFrom(), so dynamic CertificateValidationContext overwrites singular fields in default CertificateValidationContext, and concatenates repeated fields to default CertificateValidationContext, and logical OR is applied to boolean fields.
.envoy.api.v2.auth.CommonTlsContext.CombinedCertificateValidationContext combined_validation_context = 8;- Specified by:
getCombinedValidationContextin interfaceCommonTlsContextOrBuilder- Returns:
- The combinedValidationContext.
-
getCombinedValidationContextOrBuilder
public CommonTlsContext.CombinedCertificateValidationContextOrBuilder getCombinedValidationContextOrBuilder()
Combined certificate validation context holds a default CertificateValidationContext and SDS config. When SDS server returns dynamic CertificateValidationContext, both dynamic and default CertificateValidationContext are merged into a new CertificateValidationContext for validation. This merge is done by Message::MergeFrom(), so dynamic CertificateValidationContext overwrites singular fields in default CertificateValidationContext, and concatenates repeated fields to default CertificateValidationContext, and logical OR is applied to boolean fields.
.envoy.api.v2.auth.CommonTlsContext.CombinedCertificateValidationContext combined_validation_context = 8;- Specified by:
getCombinedValidationContextOrBuilderin interfaceCommonTlsContextOrBuilder
-
getAlpnProtocolsList
public com.google.protobuf.ProtocolStringList getAlpnProtocolsList()
Supplies the list of ALPN protocols that the listener should expose. In practice this is likely to be set to one of two values (see the :ref:`codec_type <envoy_api_field_config.filter.network.http_connection_manager.v2.HttpConnectionManager.codec_type>` parameter in the HTTP connection manager for more information): * "h2,http/1.1" If the listener is going to support both HTTP/2 and HTTP/1.1. * "http/1.1" If the listener is only going to support HTTP/1.1. There is no default for this parameter. If empty, Envoy will not expose ALPN.
repeated string alpn_protocols = 4;- Specified by:
getAlpnProtocolsListin interfaceCommonTlsContextOrBuilder- Returns:
- A list containing the alpnProtocols.
-
getAlpnProtocolsCount
public int getAlpnProtocolsCount()
Supplies the list of ALPN protocols that the listener should expose. In practice this is likely to be set to one of two values (see the :ref:`codec_type <envoy_api_field_config.filter.network.http_connection_manager.v2.HttpConnectionManager.codec_type>` parameter in the HTTP connection manager for more information): * "h2,http/1.1" If the listener is going to support both HTTP/2 and HTTP/1.1. * "http/1.1" If the listener is only going to support HTTP/1.1. There is no default for this parameter. If empty, Envoy will not expose ALPN.
repeated string alpn_protocols = 4;- Specified by:
getAlpnProtocolsCountin interfaceCommonTlsContextOrBuilder- Returns:
- The count of alpnProtocols.
-
getAlpnProtocols
public String getAlpnProtocols(int index)
Supplies the list of ALPN protocols that the listener should expose. In practice this is likely to be set to one of two values (see the :ref:`codec_type <envoy_api_field_config.filter.network.http_connection_manager.v2.HttpConnectionManager.codec_type>` parameter in the HTTP connection manager for more information): * "h2,http/1.1" If the listener is going to support both HTTP/2 and HTTP/1.1. * "http/1.1" If the listener is only going to support HTTP/1.1. There is no default for this parameter. If empty, Envoy will not expose ALPN.
repeated string alpn_protocols = 4;- Specified by:
getAlpnProtocolsin interfaceCommonTlsContextOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The alpnProtocols at the given index.
-
getAlpnProtocolsBytes
public com.google.protobuf.ByteString getAlpnProtocolsBytes(int index)
Supplies the list of ALPN protocols that the listener should expose. In practice this is likely to be set to one of two values (see the :ref:`codec_type <envoy_api_field_config.filter.network.http_connection_manager.v2.HttpConnectionManager.codec_type>` parameter in the HTTP connection manager for more information): * "h2,http/1.1" If the listener is going to support both HTTP/2 and HTTP/1.1. * "http/1.1" If the listener is only going to support HTTP/1.1. There is no default for this parameter. If empty, Envoy will not expose ALPN.
repeated string alpn_protocols = 4;- Specified by:
getAlpnProtocolsBytesin interfaceCommonTlsContextOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the alpnProtocols at the given index.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- 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
public boolean equals(Object obj)
- 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 CommonTlsContext parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CommonTlsContext parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CommonTlsContext parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CommonTlsContext parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CommonTlsContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CommonTlsContext parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CommonTlsContext parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static CommonTlsContext parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static CommonTlsContext parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static CommonTlsContext parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static CommonTlsContext parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static CommonTlsContext parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public CommonTlsContext.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static CommonTlsContext.Builder newBuilder()
-
newBuilder
public static CommonTlsContext.Builder newBuilder(CommonTlsContext prototype)
-
toBuilder
public CommonTlsContext.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CommonTlsContext.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static CommonTlsContext getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<CommonTlsContext> parser()
-
getParserForType
public com.google.protobuf.Parser<CommonTlsContext> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public CommonTlsContext getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-