Class SubjectAltNameMatcher.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<SubjectAltNameMatcher.Builder>
com.google.protobuf.GeneratedMessage.Builder<SubjectAltNameMatcher.Builder>
io.envoyproxy.envoy.extensions.transport_sockets.tls.v3.SubjectAltNameMatcher.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,SubjectAltNameMatcherOrBuilder
,Cloneable
- Enclosing class:
SubjectAltNameMatcher
public static final class SubjectAltNameMatcher.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SubjectAltNameMatcher.Builder>
implements SubjectAltNameMatcherOrBuilder
Matcher for subject alternative names, to match both type and value of the SAN.Protobuf type
envoy.extensions.transport_sockets.tls.v3.SubjectAltNameMatcher
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private StringMatcher
private com.google.protobuf.SingleFieldBuilder
<StringMatcher, StringMatcher.Builder, StringMatcherOrBuilder> private Object
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
buildPartial0
(SubjectAltNameMatcher result) clear()
Matcher for SAN value.clearOid()
OID Value which is required if OTHER_NAME SAN type is used.Specification of type of SAN.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Matcher for SAN value.Matcher for SAN value.Matcher for SAN value.getOid()
OID Value which is required if OTHER_NAME SAN type is used.com.google.protobuf.ByteString
OID Value which is required if OTHER_NAME SAN type is used.Specification of type of SAN.int
Specification of type of SAN.boolean
Matcher for SAN value.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
private com.google.protobuf.SingleFieldBuilder
<StringMatcher, StringMatcher.Builder, StringMatcherOrBuilder> Matcher for SAN value.final boolean
private void
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(SubjectAltNameMatcher other) mergeMatcher
(StringMatcher value) Matcher for SAN value.setMatcher
(StringMatcher value) Matcher for SAN value.setMatcher
(StringMatcher.Builder builderForValue) Matcher for SAN value.OID Value which is required if OTHER_NAME SAN type is used.setOidBytes
(com.google.protobuf.ByteString value) OID Value which is required if OTHER_NAME SAN type is used.Specification of type of SAN.setSanTypeValue
(int value) Specification of type of SAN.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
sanType_
private int sanType_ -
matcher_
-
matcherBuilder_
private com.google.protobuf.SingleFieldBuilder<StringMatcher,StringMatcher.Builder, matcherBuilder_StringMatcherOrBuilder> -
oid_
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<SubjectAltNameMatcher.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<SubjectAltNameMatcher.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<SubjectAltNameMatcher.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SubjectAltNameMatcher.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<SubjectAltNameMatcher.Builder>
-
mergeFrom
public SubjectAltNameMatcher.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SubjectAltNameMatcher.Builder>
- Throws:
IOException
-
getSanTypeValue
public int getSanTypeValue()Specification of type of SAN. Note that the default enum value is an invalid choice.
.envoy.extensions.transport_sockets.tls.v3.SubjectAltNameMatcher.SanType san_type = 1 [(.validate.rules) = { ... }
- Specified by:
getSanTypeValue
in interfaceSubjectAltNameMatcherOrBuilder
- Returns:
- The enum numeric value on the wire for sanType.
-
setSanTypeValue
Specification of type of SAN. Note that the default enum value is an invalid choice.
.envoy.extensions.transport_sockets.tls.v3.SubjectAltNameMatcher.SanType san_type = 1 [(.validate.rules) = { ... }
- Parameters:
value
- The enum numeric value on the wire for sanType to set.- Returns:
- This builder for chaining.
-
getSanType
Specification of type of SAN. Note that the default enum value is an invalid choice.
.envoy.extensions.transport_sockets.tls.v3.SubjectAltNameMatcher.SanType san_type = 1 [(.validate.rules) = { ... }
- Specified by:
getSanType
in interfaceSubjectAltNameMatcherOrBuilder
- Returns:
- The sanType.
-
setSanType
Specification of type of SAN. Note that the default enum value is an invalid choice.
.envoy.extensions.transport_sockets.tls.v3.SubjectAltNameMatcher.SanType san_type = 1 [(.validate.rules) = { ... }
- Parameters:
value
- The sanType to set.- Returns:
- This builder for chaining.
-
clearSanType
Specification of type of SAN. Note that the default enum value is an invalid choice.
.envoy.extensions.transport_sockets.tls.v3.SubjectAltNameMatcher.SanType san_type = 1 [(.validate.rules) = { ... }
- Returns:
- This builder for chaining.
-
hasMatcher
public boolean hasMatcher()Matcher for SAN value. The string matching for OTHER_NAME SAN values depends on their ASN.1 type: * OBJECT: Validated against its dotted numeric notation (e.g., "1.2.3.4") * BOOLEAN: Validated against strings "true" or "false" * INTEGER/ENUMERATED: Validated against a string containing the integer value * NULL: Validated against an empty string * Other types: Validated directly against the string value
.envoy.type.matcher.v3.StringMatcher matcher = 2 [(.validate.rules) = { ... }
- Specified by:
hasMatcher
in interfaceSubjectAltNameMatcherOrBuilder
- Returns:
- Whether the matcher field is set.
-
getMatcher
Matcher for SAN value. The string matching for OTHER_NAME SAN values depends on their ASN.1 type: * OBJECT: Validated against its dotted numeric notation (e.g., "1.2.3.4") * BOOLEAN: Validated against strings "true" or "false" * INTEGER/ENUMERATED: Validated against a string containing the integer value * NULL: Validated against an empty string * Other types: Validated directly against the string value
.envoy.type.matcher.v3.StringMatcher matcher = 2 [(.validate.rules) = { ... }
- Specified by:
getMatcher
in interfaceSubjectAltNameMatcherOrBuilder
- Returns:
- The matcher.
-
setMatcher
Matcher for SAN value. The string matching for OTHER_NAME SAN values depends on their ASN.1 type: * OBJECT: Validated against its dotted numeric notation (e.g., "1.2.3.4") * BOOLEAN: Validated against strings "true" or "false" * INTEGER/ENUMERATED: Validated against a string containing the integer value * NULL: Validated against an empty string * Other types: Validated directly against the string value
.envoy.type.matcher.v3.StringMatcher matcher = 2 [(.validate.rules) = { ... }
-
setMatcher
Matcher for SAN value. The string matching for OTHER_NAME SAN values depends on their ASN.1 type: * OBJECT: Validated against its dotted numeric notation (e.g., "1.2.3.4") * BOOLEAN: Validated against strings "true" or "false" * INTEGER/ENUMERATED: Validated against a string containing the integer value * NULL: Validated against an empty string * Other types: Validated directly against the string value
.envoy.type.matcher.v3.StringMatcher matcher = 2 [(.validate.rules) = { ... }
-
mergeMatcher
Matcher for SAN value. The string matching for OTHER_NAME SAN values depends on their ASN.1 type: * OBJECT: Validated against its dotted numeric notation (e.g., "1.2.3.4") * BOOLEAN: Validated against strings "true" or "false" * INTEGER/ENUMERATED: Validated against a string containing the integer value * NULL: Validated against an empty string * Other types: Validated directly against the string value
.envoy.type.matcher.v3.StringMatcher matcher = 2 [(.validate.rules) = { ... }
-
clearMatcher
Matcher for SAN value. The string matching for OTHER_NAME SAN values depends on their ASN.1 type: * OBJECT: Validated against its dotted numeric notation (e.g., "1.2.3.4") * BOOLEAN: Validated against strings "true" or "false" * INTEGER/ENUMERATED: Validated against a string containing the integer value * NULL: Validated against an empty string * Other types: Validated directly against the string value
.envoy.type.matcher.v3.StringMatcher matcher = 2 [(.validate.rules) = { ... }
-
getMatcherBuilder
Matcher for SAN value. The string matching for OTHER_NAME SAN values depends on their ASN.1 type: * OBJECT: Validated against its dotted numeric notation (e.g., "1.2.3.4") * BOOLEAN: Validated against strings "true" or "false" * INTEGER/ENUMERATED: Validated against a string containing the integer value * NULL: Validated against an empty string * Other types: Validated directly against the string value
.envoy.type.matcher.v3.StringMatcher matcher = 2 [(.validate.rules) = { ... }
-
getMatcherOrBuilder
Matcher for SAN value. The string matching for OTHER_NAME SAN values depends on their ASN.1 type: * OBJECT: Validated against its dotted numeric notation (e.g., "1.2.3.4") * BOOLEAN: Validated against strings "true" or "false" * INTEGER/ENUMERATED: Validated against a string containing the integer value * NULL: Validated against an empty string * Other types: Validated directly against the string value
.envoy.type.matcher.v3.StringMatcher matcher = 2 [(.validate.rules) = { ... }
- Specified by:
getMatcherOrBuilder
in interfaceSubjectAltNameMatcherOrBuilder
-
internalGetMatcherFieldBuilder
private com.google.protobuf.SingleFieldBuilder<StringMatcher,StringMatcher.Builder, internalGetMatcherFieldBuilder()StringMatcherOrBuilder> Matcher for SAN value. The string matching for OTHER_NAME SAN values depends on their ASN.1 type: * OBJECT: Validated against its dotted numeric notation (e.g., "1.2.3.4") * BOOLEAN: Validated against strings "true" or "false" * INTEGER/ENUMERATED: Validated against a string containing the integer value * NULL: Validated against an empty string * Other types: Validated directly against the string value
.envoy.type.matcher.v3.StringMatcher matcher = 2 [(.validate.rules) = { ... }
-
getOid
OID Value which is required if OTHER_NAME SAN type is used. For example, UPN OID is 1.3.6.1.4.1.311.20.2.3 (Reference: http://oid-info.com/get/1.3.6.1.4.1.311.20.2.3). If set for SAN types other than OTHER_NAME, it will be ignored.
string oid = 3;
- Specified by:
getOid
in interfaceSubjectAltNameMatcherOrBuilder
- Returns:
- The oid.
-
getOidBytes
public com.google.protobuf.ByteString getOidBytes()OID Value which is required if OTHER_NAME SAN type is used. For example, UPN OID is 1.3.6.1.4.1.311.20.2.3 (Reference: http://oid-info.com/get/1.3.6.1.4.1.311.20.2.3). If set for SAN types other than OTHER_NAME, it will be ignored.
string oid = 3;
- Specified by:
getOidBytes
in interfaceSubjectAltNameMatcherOrBuilder
- Returns:
- The bytes for oid.
-
setOid
OID Value which is required if OTHER_NAME SAN type is used. For example, UPN OID is 1.3.6.1.4.1.311.20.2.3 (Reference: http://oid-info.com/get/1.3.6.1.4.1.311.20.2.3). If set for SAN types other than OTHER_NAME, it will be ignored.
string oid = 3;
- Parameters:
value
- The oid to set.- Returns:
- This builder for chaining.
-
clearOid
OID Value which is required if OTHER_NAME SAN type is used. For example, UPN OID is 1.3.6.1.4.1.311.20.2.3 (Reference: http://oid-info.com/get/1.3.6.1.4.1.311.20.2.3). If set for SAN types other than OTHER_NAME, it will be ignored.
string oid = 3;
- Returns:
- This builder for chaining.
-
setOidBytes
OID Value which is required if OTHER_NAME SAN type is used. For example, UPN OID is 1.3.6.1.4.1.311.20.2.3 (Reference: http://oid-info.com/get/1.3.6.1.4.1.311.20.2.3). If set for SAN types other than OTHER_NAME, it will be ignored.
string oid = 3;
- Parameters:
value
- The bytes for oid to set.- Returns:
- This builder for chaining.
-