Enum CertificateExtensionConstraints.KnownCertificateExtension
- java.lang.Object
-
- java.lang.Enum<CertificateExtensionConstraints.KnownCertificateExtension>
-
- com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<CertificateExtensionConstraints.KnownCertificateExtension>
- Enclosing class:
- CertificateExtensionConstraints
public static enum CertificateExtensionConstraints.KnownCertificateExtension extends Enum<CertificateExtensionConstraints.KnownCertificateExtension> implements com.google.protobuf.ProtocolMessageEnum
Describes well-known X.509 extensions that can appear in a [Certificate][google.cloud.security.privateca.v1.Certificate], not including the [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] extension.
Protobuf enumgoogle.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AIA_OCSP_SERVERS
Refers to OCSP servers in a certificate's Authority Information Access extension, as described in [RFC 5280 section 4.2.2.1](https://tools.ietf.org/html/rfc5280#section-4.2.2.1), This corresponds to the [X509Parameters.aia_ocsp_servers][google.cloud.security.privateca.v1.X509Parameters.aia_ocsp_servers] field.BASE_KEY_USAGE
Refers to a certificate's Key Usage extension, as described in [RFC 5280 section 4.2.1.3](https://tools.ietf.org/html/rfc5280#section-4.2.1.3).CA_OPTIONS
Refers to a certificate's Basic Constraints extension, as described in [RFC 5280 section 4.2.1.9](https://tools.ietf.org/html/rfc5280#section-4.2.1.9).EXTENDED_KEY_USAGE
Refers to a certificate's Extended Key Usage extension, as described in [RFC 5280 section 4.2.1.12](https://tools.ietf.org/html/rfc5280#section-4.2.1.12).KNOWN_CERTIFICATE_EXTENSION_UNSPECIFIED
Not specified.NAME_CONSTRAINTS
Refers to Name Constraints extension as described in [RFC 5280 section 4.2.1.10](https://tools.ietf.org/html/rfc5280#section-4.2.1.10)POLICY_IDS
Refers to a certificate's Policy object identifiers, as described in [RFC 5280 section 4.2.1.4](https://tools.ietf.org/html/rfc5280#section-4.2.1.4).UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
AIA_OCSP_SERVERS_VALUE
Refers to OCSP servers in a certificate's Authority Information Access extension, as described in [RFC 5280 section 4.2.2.1](https://tools.ietf.org/html/rfc5280#section-4.2.2.1), This corresponds to the [X509Parameters.aia_ocsp_servers][google.cloud.security.privateca.v1.X509Parameters.aia_ocsp_servers] field.static int
BASE_KEY_USAGE_VALUE
Refers to a certificate's Key Usage extension, as described in [RFC 5280 section 4.2.1.3](https://tools.ietf.org/html/rfc5280#section-4.2.1.3).static int
CA_OPTIONS_VALUE
Refers to a certificate's Basic Constraints extension, as described in [RFC 5280 section 4.2.1.9](https://tools.ietf.org/html/rfc5280#section-4.2.1.9).static int
EXTENDED_KEY_USAGE_VALUE
Refers to a certificate's Extended Key Usage extension, as described in [RFC 5280 section 4.2.1.12](https://tools.ietf.org/html/rfc5280#section-4.2.1.12).static int
KNOWN_CERTIFICATE_EXTENSION_UNSPECIFIED_VALUE
Not specified.static int
NAME_CONSTRAINTS_VALUE
Refers to Name Constraints extension as described in [RFC 5280 section 4.2.1.10](https://tools.ietf.org/html/rfc5280#section-4.2.1.10)static int
POLICY_IDS_VALUE
Refers to a certificate's Policy object identifiers, as described in [RFC 5280 section 4.2.1.4](https://tools.ietf.org/html/rfc5280#section-4.2.1.4).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CertificateExtensionConstraints.KnownCertificateExtension
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<CertificateExtensionConstraints.KnownCertificateExtension>
internalGetValueMap()
static CertificateExtensionConstraints.KnownCertificateExtension
valueOf(int value)
Deprecated.static CertificateExtensionConstraints.KnownCertificateExtension
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static CertificateExtensionConstraints.KnownCertificateExtension
valueOf(String name)
Returns the enum constant of this type with the specified name.static CertificateExtensionConstraints.KnownCertificateExtension[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
KNOWN_CERTIFICATE_EXTENSION_UNSPECIFIED
public static final CertificateExtensionConstraints.KnownCertificateExtension KNOWN_CERTIFICATE_EXTENSION_UNSPECIFIED
Not specified.
KNOWN_CERTIFICATE_EXTENSION_UNSPECIFIED = 0;
-
BASE_KEY_USAGE
public static final CertificateExtensionConstraints.KnownCertificateExtension BASE_KEY_USAGE
Refers to a certificate's Key Usage extension, as described in [RFC 5280 section 4.2.1.3](https://tools.ietf.org/html/rfc5280#section-4.2.1.3). This corresponds to the [KeyUsage.base_key_usage][google.cloud.security.privateca.v1.KeyUsage.base_key_usage] field.
BASE_KEY_USAGE = 1;
-
EXTENDED_KEY_USAGE
public static final CertificateExtensionConstraints.KnownCertificateExtension EXTENDED_KEY_USAGE
Refers to a certificate's Extended Key Usage extension, as described in [RFC 5280 section 4.2.1.12](https://tools.ietf.org/html/rfc5280#section-4.2.1.12). This corresponds to the [KeyUsage.extended_key_usage][google.cloud.security.privateca.v1.KeyUsage.extended_key_usage] message.
EXTENDED_KEY_USAGE = 2;
-
CA_OPTIONS
public static final CertificateExtensionConstraints.KnownCertificateExtension CA_OPTIONS
Refers to a certificate's Basic Constraints extension, as described in [RFC 5280 section 4.2.1.9](https://tools.ietf.org/html/rfc5280#section-4.2.1.9). This corresponds to the [X509Parameters.ca_options][google.cloud.security.privateca.v1.X509Parameters.ca_options] field.
CA_OPTIONS = 3;
-
POLICY_IDS
public static final CertificateExtensionConstraints.KnownCertificateExtension POLICY_IDS
Refers to a certificate's Policy object identifiers, as described in [RFC 5280 section 4.2.1.4](https://tools.ietf.org/html/rfc5280#section-4.2.1.4). This corresponds to the [X509Parameters.policy_ids][google.cloud.security.privateca.v1.X509Parameters.policy_ids] field.
POLICY_IDS = 4;
-
AIA_OCSP_SERVERS
public static final CertificateExtensionConstraints.KnownCertificateExtension AIA_OCSP_SERVERS
Refers to OCSP servers in a certificate's Authority Information Access extension, as described in [RFC 5280 section 4.2.2.1](https://tools.ietf.org/html/rfc5280#section-4.2.2.1), This corresponds to the [X509Parameters.aia_ocsp_servers][google.cloud.security.privateca.v1.X509Parameters.aia_ocsp_servers] field.
AIA_OCSP_SERVERS = 5;
-
NAME_CONSTRAINTS
public static final CertificateExtensionConstraints.KnownCertificateExtension NAME_CONSTRAINTS
Refers to Name Constraints extension as described in [RFC 5280 section 4.2.1.10](https://tools.ietf.org/html/rfc5280#section-4.2.1.10)
NAME_CONSTRAINTS = 6;
-
UNRECOGNIZED
public static final CertificateExtensionConstraints.KnownCertificateExtension UNRECOGNIZED
-
-
Field Detail
-
KNOWN_CERTIFICATE_EXTENSION_UNSPECIFIED_VALUE
public static final int KNOWN_CERTIFICATE_EXTENSION_UNSPECIFIED_VALUE
Not specified.
KNOWN_CERTIFICATE_EXTENSION_UNSPECIFIED = 0;
- See Also:
- Constant Field Values
-
BASE_KEY_USAGE_VALUE
public static final int BASE_KEY_USAGE_VALUE
Refers to a certificate's Key Usage extension, as described in [RFC 5280 section 4.2.1.3](https://tools.ietf.org/html/rfc5280#section-4.2.1.3). This corresponds to the [KeyUsage.base_key_usage][google.cloud.security.privateca.v1.KeyUsage.base_key_usage] field.
BASE_KEY_USAGE = 1;
- See Also:
- Constant Field Values
-
EXTENDED_KEY_USAGE_VALUE
public static final int EXTENDED_KEY_USAGE_VALUE
Refers to a certificate's Extended Key Usage extension, as described in [RFC 5280 section 4.2.1.12](https://tools.ietf.org/html/rfc5280#section-4.2.1.12). This corresponds to the [KeyUsage.extended_key_usage][google.cloud.security.privateca.v1.KeyUsage.extended_key_usage] message.
EXTENDED_KEY_USAGE = 2;
- See Also:
- Constant Field Values
-
CA_OPTIONS_VALUE
public static final int CA_OPTIONS_VALUE
Refers to a certificate's Basic Constraints extension, as described in [RFC 5280 section 4.2.1.9](https://tools.ietf.org/html/rfc5280#section-4.2.1.9). This corresponds to the [X509Parameters.ca_options][google.cloud.security.privateca.v1.X509Parameters.ca_options] field.
CA_OPTIONS = 3;
- See Also:
- Constant Field Values
-
POLICY_IDS_VALUE
public static final int POLICY_IDS_VALUE
Refers to a certificate's Policy object identifiers, as described in [RFC 5280 section 4.2.1.4](https://tools.ietf.org/html/rfc5280#section-4.2.1.4). This corresponds to the [X509Parameters.policy_ids][google.cloud.security.privateca.v1.X509Parameters.policy_ids] field.
POLICY_IDS = 4;
- See Also:
- Constant Field Values
-
AIA_OCSP_SERVERS_VALUE
public static final int AIA_OCSP_SERVERS_VALUE
Refers to OCSP servers in a certificate's Authority Information Access extension, as described in [RFC 5280 section 4.2.2.1](https://tools.ietf.org/html/rfc5280#section-4.2.2.1), This corresponds to the [X509Parameters.aia_ocsp_servers][google.cloud.security.privateca.v1.X509Parameters.aia_ocsp_servers] field.
AIA_OCSP_SERVERS = 5;
- See Also:
- Constant Field Values
-
NAME_CONSTRAINTS_VALUE
public static final int NAME_CONSTRAINTS_VALUE
Refers to Name Constraints extension as described in [RFC 5280 section 4.2.1.10](https://tools.ietf.org/html/rfc5280#section-4.2.1.10)
NAME_CONSTRAINTS = 6;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static CertificateExtensionConstraints.KnownCertificateExtension[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CertificateExtensionConstraints.KnownCertificateExtension c : CertificateExtensionConstraints.KnownCertificateExtension.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CertificateExtensionConstraints.KnownCertificateExtension valueOf(String name)
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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static CertificateExtensionConstraints.KnownCertificateExtension valueOf(int value)
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
public static CertificateExtensionConstraints.KnownCertificateExtension forNumber(int value)
- 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<CertificateExtensionConstraints.KnownCertificateExtension> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static CertificateExtensionConstraints.KnownCertificateExtension 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
-
-