public final class CsrfPolicy extends com.google.protobuf.GeneratedMessageV3 implements CsrfPolicyOrBuilder
CSRF filter config.Protobuf type
envoy.extensions.filters.http.csrf.v3.CsrfPolicy| Modifier and Type | Class and Description |
|---|---|
static class |
CsrfPolicy.Builder
CSRF filter config.
|
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 |
ADDITIONAL_ORIGINS_FIELD_NUMBER |
static int |
FILTER_ENABLED_FIELD_NUMBER |
static int |
SHADOW_ENABLED_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
StringMatcher |
getAdditionalOrigins(int index)
Specifies additional source origins that will be allowed in addition to
the destination origin.
|
int |
getAdditionalOriginsCount()
Specifies additional source origins that will be allowed in addition to
the destination origin.
|
List<StringMatcher> |
getAdditionalOriginsList()
Specifies additional source origins that will be allowed in addition to
the destination origin.
|
StringMatcherOrBuilder |
getAdditionalOriginsOrBuilder(int index)
Specifies additional source origins that will be allowed in addition to
the destination origin.
|
List<? extends StringMatcherOrBuilder> |
getAdditionalOriginsOrBuilderList()
Specifies additional source origins that will be allowed in addition to
the destination origin.
|
static CsrfPolicy |
getDefaultInstance() |
CsrfPolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
RuntimeFractionalPercent |
getFilterEnabled()
Specifies the % of requests for which the CSRF filter is enabled.
|
RuntimeFractionalPercentOrBuilder |
getFilterEnabledOrBuilder()
Specifies the % of requests for which the CSRF filter is enabled.
|
com.google.protobuf.Parser<CsrfPolicy> |
getParserForType() |
int |
getSerializedSize() |
RuntimeFractionalPercent |
getShadowEnabled()
Specifies that CSRF policies will be evaluated and tracked, but not enforced.
|
RuntimeFractionalPercentOrBuilder |
getShadowEnabledOrBuilder()
Specifies that CSRF policies will be evaluated and tracked, but not enforced.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasFilterEnabled()
Specifies the % of requests for which the CSRF filter is enabled.
|
int |
hashCode() |
boolean |
hasShadowEnabled()
Specifies that CSRF policies will be evaluated and tracked, but not enforced.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static CsrfPolicy.Builder |
newBuilder() |
static CsrfPolicy.Builder |
newBuilder(CsrfPolicy prototype) |
CsrfPolicy.Builder |
newBuilderForType() |
protected CsrfPolicy.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static CsrfPolicy |
parseDelimitedFrom(InputStream input) |
static CsrfPolicy |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CsrfPolicy |
parseFrom(byte[] data) |
static CsrfPolicy |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CsrfPolicy |
parseFrom(ByteBuffer data) |
static CsrfPolicy |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CsrfPolicy |
parseFrom(com.google.protobuf.ByteString data) |
static CsrfPolicy |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CsrfPolicy |
parseFrom(com.google.protobuf.CodedInputStream input) |
static CsrfPolicy |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CsrfPolicy |
parseFrom(InputStream input) |
static CsrfPolicy |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<CsrfPolicy> |
parser() |
CsrfPolicy.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 FILTER_ENABLED_FIELD_NUMBER
public static final int SHADOW_ENABLED_FIELD_NUMBER
public static final int ADDITIONAL_ORIGINS_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 boolean hasFilterEnabled()
Specifies the % of requests for which the CSRF filter is enabled. If :ref:`runtime_key <envoy_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter. .. note:: This field defaults to 100/:ref:`HUNDRED <envoy_api_enum_type.v3.FractionalPercent.DenominatorType>`.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 1 [(.validate.rules) = { ... }hasFilterEnabled in interface CsrfPolicyOrBuilderpublic RuntimeFractionalPercent getFilterEnabled()
Specifies the % of requests for which the CSRF filter is enabled. If :ref:`runtime_key <envoy_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter. .. note:: This field defaults to 100/:ref:`HUNDRED <envoy_api_enum_type.v3.FractionalPercent.DenominatorType>`.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 1 [(.validate.rules) = { ... }getFilterEnabled in interface CsrfPolicyOrBuilderpublic RuntimeFractionalPercentOrBuilder getFilterEnabledOrBuilder()
Specifies the % of requests for which the CSRF filter is enabled. If :ref:`runtime_key <envoy_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter. .. note:: This field defaults to 100/:ref:`HUNDRED <envoy_api_enum_type.v3.FractionalPercent.DenominatorType>`.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 1 [(.validate.rules) = { ... }getFilterEnabledOrBuilder in interface CsrfPolicyOrBuilderpublic boolean hasShadowEnabled()
Specifies that CSRF policies will be evaluated and tracked, but not enforced. This is intended to be used when ``filter_enabled`` is off and will be ignored otherwise. If :ref:`runtime_key <envoy_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests for which it will evaluate and track the request's *Origin* and *Destination* to determine if it's valid, but will not enforce any policies.
.envoy.config.core.v3.RuntimeFractionalPercent shadow_enabled = 2;hasShadowEnabled in interface CsrfPolicyOrBuilderpublic RuntimeFractionalPercent getShadowEnabled()
Specifies that CSRF policies will be evaluated and tracked, but not enforced. This is intended to be used when ``filter_enabled`` is off and will be ignored otherwise. If :ref:`runtime_key <envoy_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests for which it will evaluate and track the request's *Origin* and *Destination* to determine if it's valid, but will not enforce any policies.
.envoy.config.core.v3.RuntimeFractionalPercent shadow_enabled = 2;getShadowEnabled in interface CsrfPolicyOrBuilderpublic RuntimeFractionalPercentOrBuilder getShadowEnabledOrBuilder()
Specifies that CSRF policies will be evaluated and tracked, but not enforced. This is intended to be used when ``filter_enabled`` is off and will be ignored otherwise. If :ref:`runtime_key <envoy_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests for which it will evaluate and track the request's *Origin* and *Destination* to determine if it's valid, but will not enforce any policies.
.envoy.config.core.v3.RuntimeFractionalPercent shadow_enabled = 2;getShadowEnabledOrBuilder in interface CsrfPolicyOrBuilderpublic List<StringMatcher> getAdditionalOriginsList()
Specifies additional source origins that will be allowed in addition to the destination origin. More information on how this can be configured via runtime can be found :ref:`here <csrf-configuration>`.
repeated .envoy.type.matcher.v3.StringMatcher additional_origins = 3;getAdditionalOriginsList in interface CsrfPolicyOrBuilderpublic List<? extends StringMatcherOrBuilder> getAdditionalOriginsOrBuilderList()
Specifies additional source origins that will be allowed in addition to the destination origin. More information on how this can be configured via runtime can be found :ref:`here <csrf-configuration>`.
repeated .envoy.type.matcher.v3.StringMatcher additional_origins = 3;getAdditionalOriginsOrBuilderList in interface CsrfPolicyOrBuilderpublic int getAdditionalOriginsCount()
Specifies additional source origins that will be allowed in addition to the destination origin. More information on how this can be configured via runtime can be found :ref:`here <csrf-configuration>`.
repeated .envoy.type.matcher.v3.StringMatcher additional_origins = 3;getAdditionalOriginsCount in interface CsrfPolicyOrBuilderpublic StringMatcher getAdditionalOrigins(int index)
Specifies additional source origins that will be allowed in addition to the destination origin. More information on how this can be configured via runtime can be found :ref:`here <csrf-configuration>`.
repeated .envoy.type.matcher.v3.StringMatcher additional_origins = 3;getAdditionalOrigins in interface CsrfPolicyOrBuilderpublic StringMatcherOrBuilder getAdditionalOriginsOrBuilder(int index)
Specifies additional source origins that will be allowed in addition to the destination origin. More information on how this can be configured via runtime can be found :ref:`here <csrf-configuration>`.
repeated .envoy.type.matcher.v3.StringMatcher additional_origins = 3;getAdditionalOriginsOrBuilder in interface CsrfPolicyOrBuilderpublic 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 CsrfPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CsrfPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CsrfPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CsrfPolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CsrfPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CsrfPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CsrfPolicy parseFrom(InputStream input) throws IOException
IOExceptionpublic static CsrfPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CsrfPolicy parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static CsrfPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CsrfPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static CsrfPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic CsrfPolicy.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static CsrfPolicy.Builder newBuilder()
public static CsrfPolicy.Builder newBuilder(CsrfPolicy prototype)
public CsrfPolicy.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected CsrfPolicy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static CsrfPolicy getDefaultInstance()
public static com.google.protobuf.Parser<CsrfPolicy> parser()
public com.google.protobuf.Parser<CsrfPolicy> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public CsrfPolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.