Enum PkixPublicKey.SignatureAlgorithm
- java.lang.Object
-
- java.lang.Enum<PkixPublicKey.SignatureAlgorithm>
-
- com.google.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<PkixPublicKey.SignatureAlgorithm>
- Enclosing class:
- PkixPublicKey
public static enum PkixPublicKey.SignatureAlgorithm extends Enum<PkixPublicKey.SignatureAlgorithm> implements com.google.protobuf.ProtocolMessageEnum
Represents a signature algorithm and other information necessary to verify signatures with a given public key. This is based primarily on the public key types supported by Tink's PemKeyType, which is in turn based on KMS's supported signing algorithms. See https://cloud.google.com/kms/docs/algorithms. In the future, BinAuthz might support additional public key types independently of Tink and/or KMS.
Protobuf enumgoogle.cloud.binaryauthorization.v1beta1.PkixPublicKey.SignatureAlgorithm
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ECDSA_P256_SHA256ECDSA on the NIST P-256 curve with a SHA256 digest.ECDSA_P384_SHA384ECDSA on the NIST P-384 curve with a SHA384 digest.ECDSA_P521_SHA512ECDSA on the NIST P-521 curve with a SHA512 digest.RSA_PSS_2048_SHA256RSASSA-PSS 2048 bit key with a SHA256 digest.RSA_PSS_3072_SHA256RSASSA-PSS 3072 bit key with a SHA256 digest.RSA_PSS_4096_SHA256RSASSA-PSS 4096 bit key with a SHA256 digest.RSA_PSS_4096_SHA512RSASSA-PSS 4096 bit key with a SHA512 digest.RSA_SIGN_PKCS1_2048_SHA256RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.RSA_SIGN_PKCS1_3072_SHA256RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.RSA_SIGN_PKCS1_4096_SHA256RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.RSA_SIGN_PKCS1_4096_SHA512RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.SIGNATURE_ALGORITHM_UNSPECIFIEDNot specified.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static PkixPublicKey.SignatureAlgorithmEC_SIGN_P256_SHA256ECDSA on the NIST P-256 curve with a SHA256 digest.static intEC_SIGN_P256_SHA256_VALUEECDSA on the NIST P-256 curve with a SHA256 digest.static PkixPublicKey.SignatureAlgorithmEC_SIGN_P384_SHA384ECDSA on the NIST P-384 curve with a SHA384 digest.static intEC_SIGN_P384_SHA384_VALUEECDSA on the NIST P-384 curve with a SHA384 digest.static PkixPublicKey.SignatureAlgorithmEC_SIGN_P521_SHA512ECDSA on the NIST P-521 curve with a SHA512 digest.static intEC_SIGN_P521_SHA512_VALUEECDSA on the NIST P-521 curve with a SHA512 digest.static intECDSA_P256_SHA256_VALUEECDSA on the NIST P-256 curve with a SHA256 digest.static intECDSA_P384_SHA384_VALUEECDSA on the NIST P-384 curve with a SHA384 digest.static intECDSA_P521_SHA512_VALUEECDSA on the NIST P-521 curve with a SHA512 digest.static intRSA_PSS_2048_SHA256_VALUERSASSA-PSS 2048 bit key with a SHA256 digest.static intRSA_PSS_3072_SHA256_VALUERSASSA-PSS 3072 bit key with a SHA256 digest.static intRSA_PSS_4096_SHA256_VALUERSASSA-PSS 4096 bit key with a SHA256 digest.static intRSA_PSS_4096_SHA512_VALUERSASSA-PSS 4096 bit key with a SHA512 digest.static intRSA_SIGN_PKCS1_2048_SHA256_VALUERSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.static intRSA_SIGN_PKCS1_3072_SHA256_VALUERSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.static intRSA_SIGN_PKCS1_4096_SHA256_VALUERSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.static intRSA_SIGN_PKCS1_4096_SHA512_VALUERSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.static intSIGNATURE_ALGORITHM_UNSPECIFIED_VALUENot specified.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static PkixPublicKey.SignatureAlgorithmforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<PkixPublicKey.SignatureAlgorithm>internalGetValueMap()static PkixPublicKey.SignatureAlgorithmvalueOf(int value)Deprecated.static PkixPublicKey.SignatureAlgorithmvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static PkixPublicKey.SignatureAlgorithmvalueOf(String name)Returns the enum constant of this type with the specified name.static PkixPublicKey.SignatureAlgorithm[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SIGNATURE_ALGORITHM_UNSPECIFIED
public static final PkixPublicKey.SignatureAlgorithm SIGNATURE_ALGORITHM_UNSPECIFIED
Not specified.
SIGNATURE_ALGORITHM_UNSPECIFIED = 0;
-
RSA_PSS_2048_SHA256
public static final PkixPublicKey.SignatureAlgorithm RSA_PSS_2048_SHA256
RSASSA-PSS 2048 bit key with a SHA256 digest.
RSA_PSS_2048_SHA256 = 1;
-
RSA_PSS_3072_SHA256
public static final PkixPublicKey.SignatureAlgorithm RSA_PSS_3072_SHA256
RSASSA-PSS 3072 bit key with a SHA256 digest.
RSA_PSS_3072_SHA256 = 2;
-
RSA_PSS_4096_SHA256
public static final PkixPublicKey.SignatureAlgorithm RSA_PSS_4096_SHA256
RSASSA-PSS 4096 bit key with a SHA256 digest.
RSA_PSS_4096_SHA256 = 3;
-
RSA_PSS_4096_SHA512
public static final PkixPublicKey.SignatureAlgorithm RSA_PSS_4096_SHA512
RSASSA-PSS 4096 bit key with a SHA512 digest.
RSA_PSS_4096_SHA512 = 4;
-
RSA_SIGN_PKCS1_2048_SHA256
public static final PkixPublicKey.SignatureAlgorithm RSA_SIGN_PKCS1_2048_SHA256
RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.
RSA_SIGN_PKCS1_2048_SHA256 = 5;
-
RSA_SIGN_PKCS1_3072_SHA256
public static final PkixPublicKey.SignatureAlgorithm RSA_SIGN_PKCS1_3072_SHA256
RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.
RSA_SIGN_PKCS1_3072_SHA256 = 6;
-
RSA_SIGN_PKCS1_4096_SHA256
public static final PkixPublicKey.SignatureAlgorithm RSA_SIGN_PKCS1_4096_SHA256
RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.
RSA_SIGN_PKCS1_4096_SHA256 = 7;
-
RSA_SIGN_PKCS1_4096_SHA512
public static final PkixPublicKey.SignatureAlgorithm RSA_SIGN_PKCS1_4096_SHA512
RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.
RSA_SIGN_PKCS1_4096_SHA512 = 8;
-
ECDSA_P256_SHA256
public static final PkixPublicKey.SignatureAlgorithm ECDSA_P256_SHA256
ECDSA on the NIST P-256 curve with a SHA256 digest.
ECDSA_P256_SHA256 = 9;
-
ECDSA_P384_SHA384
public static final PkixPublicKey.SignatureAlgorithm ECDSA_P384_SHA384
ECDSA on the NIST P-384 curve with a SHA384 digest.
ECDSA_P384_SHA384 = 10;
-
ECDSA_P521_SHA512
public static final PkixPublicKey.SignatureAlgorithm ECDSA_P521_SHA512
ECDSA on the NIST P-521 curve with a SHA512 digest.
ECDSA_P521_SHA512 = 11;
-
UNRECOGNIZED
public static final PkixPublicKey.SignatureAlgorithm UNRECOGNIZED
-
-
Field Detail
-
EC_SIGN_P256_SHA256
public static final PkixPublicKey.SignatureAlgorithm EC_SIGN_P256_SHA256
ECDSA on the NIST P-256 curve with a SHA256 digest.
EC_SIGN_P256_SHA256 = 9;
-
EC_SIGN_P384_SHA384
public static final PkixPublicKey.SignatureAlgorithm EC_SIGN_P384_SHA384
ECDSA on the NIST P-384 curve with a SHA384 digest.
EC_SIGN_P384_SHA384 = 10;
-
EC_SIGN_P521_SHA512
public static final PkixPublicKey.SignatureAlgorithm EC_SIGN_P521_SHA512
ECDSA on the NIST P-521 curve with a SHA512 digest.
EC_SIGN_P521_SHA512 = 11;
-
SIGNATURE_ALGORITHM_UNSPECIFIED_VALUE
public static final int SIGNATURE_ALGORITHM_UNSPECIFIED_VALUE
Not specified.
SIGNATURE_ALGORITHM_UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
RSA_PSS_2048_SHA256_VALUE
public static final int RSA_PSS_2048_SHA256_VALUE
RSASSA-PSS 2048 bit key with a SHA256 digest.
RSA_PSS_2048_SHA256 = 1;- See Also:
- Constant Field Values
-
RSA_PSS_3072_SHA256_VALUE
public static final int RSA_PSS_3072_SHA256_VALUE
RSASSA-PSS 3072 bit key with a SHA256 digest.
RSA_PSS_3072_SHA256 = 2;- See Also:
- Constant Field Values
-
RSA_PSS_4096_SHA256_VALUE
public static final int RSA_PSS_4096_SHA256_VALUE
RSASSA-PSS 4096 bit key with a SHA256 digest.
RSA_PSS_4096_SHA256 = 3;- See Also:
- Constant Field Values
-
RSA_PSS_4096_SHA512_VALUE
public static final int RSA_PSS_4096_SHA512_VALUE
RSASSA-PSS 4096 bit key with a SHA512 digest.
RSA_PSS_4096_SHA512 = 4;- See Also:
- Constant Field Values
-
RSA_SIGN_PKCS1_2048_SHA256_VALUE
public static final int RSA_SIGN_PKCS1_2048_SHA256_VALUE
RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.
RSA_SIGN_PKCS1_2048_SHA256 = 5;- See Also:
- Constant Field Values
-
RSA_SIGN_PKCS1_3072_SHA256_VALUE
public static final int RSA_SIGN_PKCS1_3072_SHA256_VALUE
RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.
RSA_SIGN_PKCS1_3072_SHA256 = 6;- See Also:
- Constant Field Values
-
RSA_SIGN_PKCS1_4096_SHA256_VALUE
public static final int RSA_SIGN_PKCS1_4096_SHA256_VALUE
RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.
RSA_SIGN_PKCS1_4096_SHA256 = 7;- See Also:
- Constant Field Values
-
RSA_SIGN_PKCS1_4096_SHA512_VALUE
public static final int RSA_SIGN_PKCS1_4096_SHA512_VALUE
RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.
RSA_SIGN_PKCS1_4096_SHA512 = 8;- See Also:
- Constant Field Values
-
ECDSA_P256_SHA256_VALUE
public static final int ECDSA_P256_SHA256_VALUE
ECDSA on the NIST P-256 curve with a SHA256 digest.
ECDSA_P256_SHA256 = 9;- See Also:
- Constant Field Values
-
EC_SIGN_P256_SHA256_VALUE
public static final int EC_SIGN_P256_SHA256_VALUE
ECDSA on the NIST P-256 curve with a SHA256 digest.
EC_SIGN_P256_SHA256 = 9;- See Also:
- Constant Field Values
-
ECDSA_P384_SHA384_VALUE
public static final int ECDSA_P384_SHA384_VALUE
ECDSA on the NIST P-384 curve with a SHA384 digest.
ECDSA_P384_SHA384 = 10;- See Also:
- Constant Field Values
-
EC_SIGN_P384_SHA384_VALUE
public static final int EC_SIGN_P384_SHA384_VALUE
ECDSA on the NIST P-384 curve with a SHA384 digest.
EC_SIGN_P384_SHA384 = 10;- See Also:
- Constant Field Values
-
ECDSA_P521_SHA512_VALUE
public static final int ECDSA_P521_SHA512_VALUE
ECDSA on the NIST P-521 curve with a SHA512 digest.
ECDSA_P521_SHA512 = 11;- See Also:
- Constant Field Values
-
EC_SIGN_P521_SHA512_VALUE
public static final int EC_SIGN_P521_SHA512_VALUE
ECDSA on the NIST P-521 curve with a SHA512 digest.
EC_SIGN_P521_SHA512 = 11;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static PkixPublicKey.SignatureAlgorithm[] 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 (PkixPublicKey.SignatureAlgorithm c : PkixPublicKey.SignatureAlgorithm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PkixPublicKey.SignatureAlgorithm 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:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static PkixPublicKey.SignatureAlgorithm 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 PkixPublicKey.SignatureAlgorithm 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<PkixPublicKey.SignatureAlgorithm> 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static PkixPublicKey.SignatureAlgorithm 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
-
-