Enum AuthzPolicy.AuthzRule.Principal.PrincipalSelector
java.lang.Object
java.lang.Enum<AuthzPolicy.AuthzRule.Principal.PrincipalSelector>
com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.PrincipalSelector
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<AuthzPolicy.AuthzRule.Principal.PrincipalSelector>
- Enclosing class:
- AuthzPolicy.AuthzRule.Principal
public static enum AuthzPolicy.AuthzRule.Principal.PrincipalSelector
extends Enum<AuthzPolicy.AuthzRule.Principal.PrincipalSelector>
implements com.google.protobuf.ProtocolMessageEnum
The principal value the principal rule will match against.Protobuf enum
google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.Principal.PrincipalSelector-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe principal rule is matched against the common name in the client's certificate.The principal rule is matched against a list of DNS Name SANs in the validated client's certificate.The principal rule is matched against a list of URI SANs in the validated client's certificate.Unspecified principal selector. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe principal rule is matched against the common name in the client's certificate.static final intThe principal rule is matched against a list of DNS Name SANs in the validated client's certificate.static final intThe principal rule is matched against a list of URI SANs in the validated client's certificate.static final intUnspecified principal selector. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<AuthzPolicy.AuthzRule.Principal.PrincipalSelector>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PRINCIPAL_SELECTOR_UNSPECIFIED
public static final AuthzPolicy.AuthzRule.Principal.PrincipalSelector PRINCIPAL_SELECTOR_UNSPECIFIEDUnspecified principal selector. It will be treated as CLIENT_CERT_URI_SAN by default.
PRINCIPAL_SELECTOR_UNSPECIFIED = 0; -
CLIENT_CERT_URI_SAN
The principal rule is matched against a list of URI SANs in the validated client's certificate. A match happens when there is any exact URI SAN value match. This is the default principal selector.
CLIENT_CERT_URI_SAN = 1; -
CLIENT_CERT_DNS_NAME_SAN
The principal rule is matched against a list of DNS Name SANs in the validated client's certificate. A match happens when there is any exact DNS Name SAN value match. This is only applicable for Application Load Balancers except for classic Global External Application load balancer. CLIENT_CERT_DNS_NAME_SAN is not supported for INTERNAL_SELF_MANAGED load balancing scheme.
CLIENT_CERT_DNS_NAME_SAN = 2; -
CLIENT_CERT_COMMON_NAME
The principal rule is matched against the common name in the client's certificate. Authorization against multiple common names in the client certificate is not supported. Requests with multiple common names in the client certificate will be rejected if CLIENT_CERT_COMMON_NAME is set as the principal selector. A match happens when there is an exact common name value match. This is only applicable for Application Load Balancers except for global external Application Load Balancer and classic Application Load Balancer. CLIENT_CERT_COMMON_NAME is not supported for INTERNAL_SELF_MANAGED load balancing scheme.
CLIENT_CERT_COMMON_NAME = 3; -
UNRECOGNIZED
-
-
Field Details
-
PRINCIPAL_SELECTOR_UNSPECIFIED_VALUE
public static final int PRINCIPAL_SELECTOR_UNSPECIFIED_VALUEUnspecified principal selector. It will be treated as CLIENT_CERT_URI_SAN by default.
PRINCIPAL_SELECTOR_UNSPECIFIED = 0;- See Also:
-
CLIENT_CERT_URI_SAN_VALUE
public static final int CLIENT_CERT_URI_SAN_VALUEThe principal rule is matched against a list of URI SANs in the validated client's certificate. A match happens when there is any exact URI SAN value match. This is the default principal selector.
CLIENT_CERT_URI_SAN = 1;- See Also:
-
CLIENT_CERT_DNS_NAME_SAN_VALUE
public static final int CLIENT_CERT_DNS_NAME_SAN_VALUEThe principal rule is matched against a list of DNS Name SANs in the validated client's certificate. A match happens when there is any exact DNS Name SAN value match. This is only applicable for Application Load Balancers except for classic Global External Application load balancer. CLIENT_CERT_DNS_NAME_SAN is not supported for INTERNAL_SELF_MANAGED load balancing scheme.
CLIENT_CERT_DNS_NAME_SAN = 2;- See Also:
-
CLIENT_CERT_COMMON_NAME_VALUE
public static final int CLIENT_CERT_COMMON_NAME_VALUEThe principal rule is matched against the common name in the client's certificate. Authorization against multiple common names in the client certificate is not supported. Requests with multiple common names in the client certificate will be rejected if CLIENT_CERT_COMMON_NAME is set as the principal selector. A match happens when there is an exact common name value match. This is only applicable for Application Load Balancers except for global external Application Load Balancer and classic Application Load Balancer. CLIENT_CERT_COMMON_NAME is not supported for INTERNAL_SELF_MANAGED load balancing scheme.
CLIENT_CERT_COMMON_NAME = 3;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<AuthzPolicy.AuthzRule.Principal.PrincipalSelector> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static AuthzPolicy.AuthzRule.Principal.PrincipalSelector valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-