Enum PublicKey.KeyFormat

java.lang.Object
java.lang.Enum<PublicKey.KeyFormat>
com.google.cloud.security.privateca.v1.PublicKey.KeyFormat
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<PublicKey.KeyFormat>
Enclosing class:
PublicKey

public static enum PublicKey.KeyFormat extends Enum<PublicKey.KeyFormat> implements com.google.protobuf.ProtocolMessageEnum
 Types of public keys formats that are supported. Currently, only `PEM`
 format is supported.
 
Protobuf enum google.cloud.security.privateca.v1.PublicKey.KeyFormat
  • Enum Constant Details

    • KEY_FORMAT_UNSPECIFIED

      public static final PublicKey.KeyFormat KEY_FORMAT_UNSPECIFIED
       Default unspecified value.
       
      KEY_FORMAT_UNSPECIFIED = 0;
    • PEM

      public static final PublicKey.KeyFormat PEM
       The key is PEM-encoded as defined in [RFC
       7468](https://tools.ietf.org/html/rfc7468). It can be any of the
       following: a PEM-encoded PKCS#1/RFC 3447 RSAPublicKey
       structure, an RFC 5280
       [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1)
       or a PEM-encoded X.509 certificate signing request (CSR). If a
       [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1)
       is specified, it can contain a A PEM-encoded PKCS#1/RFC 3447 RSAPublicKey
       or a NIST P-256/secp256r1/prime256v1 or P-384 key. If a CSR is specified,
       it will used solely for the purpose of extracting the public key. When
       generated by the service, it will always be an RFC 5280
       [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1)
       structure containing an algorithm identifier and a key.
       
      PEM = 1;
    • UNRECOGNIZED

      public static final PublicKey.KeyFormat UNRECOGNIZED
  • Field Details

    • KEY_FORMAT_UNSPECIFIED_VALUE

      public static final int KEY_FORMAT_UNSPECIFIED_VALUE
       Default unspecified value.
       
      KEY_FORMAT_UNSPECIFIED = 0;
      See Also:
    • PEM_VALUE

      public static final int PEM_VALUE
       The key is PEM-encoded as defined in [RFC
       7468](https://tools.ietf.org/html/rfc7468). It can be any of the
       following: a PEM-encoded PKCS#1/RFC 3447 RSAPublicKey
       structure, an RFC 5280
       [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1)
       or a PEM-encoded X.509 certificate signing request (CSR). If a
       [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1)
       is specified, it can contain a A PEM-encoded PKCS#1/RFC 3447 RSAPublicKey
       or a NIST P-256/secp256r1/prime256v1 or P-384 key. If a CSR is specified,
       it will used solely for the purpose of extracting the public key. When
       generated by the service, it will always be an RFC 5280
       [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1)
       structure containing an algorithm identifier and a key.
       
      PEM = 1;
      See Also:
  • Method Details

    • values

      public static PublicKey.KeyFormat[] 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

      public static PublicKey.KeyFormat 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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static PublicKey.KeyFormat 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 name
      NullPointerException - if the argument is null
    • forNumber

      public static PublicKey.KeyFormat 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<PublicKey.KeyFormat> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static PublicKey.KeyFormat 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 name
      NullPointerException - if the argument is null