com.google.crypto.tink.proto.JwtEcdsaAlgorithm Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: proto/jwt_ecdsa.proto
package com.google.crypto.tink.proto;
/**
*
* See https://datatracker.ietf.org/doc/html/rfc7518#section-3.4
*
*
* Protobuf enum {@code google.crypto.tink.JwtEcdsaAlgorithm}
*/
public enum JwtEcdsaAlgorithm
implements com.google.protobuf.Internal.EnumLite {
/**
* ES_UNKNOWN = 0;
*/
ES_UNKNOWN(0),
/**
*
* ECDSA using P-256 and SHA-256
*
*
* ES256 = 1;
*/
ES256(1),
/**
*
* ECDSA using P-384 and SHA-384
*
*
* ES384 = 2;
*/
ES384(2),
/**
*
* ECDSA using P-521 and SHA-512
*
*
* ES512 = 3;
*/
ES512(3),
UNRECOGNIZED(-1),
;
/**
* ES_UNKNOWN = 0;
*/
public static final int ES_UNKNOWN_VALUE = 0;
/**
*
* ECDSA using P-256 and SHA-256
*
*
* ES256 = 1;
*/
public static final int ES256_VALUE = 1;
/**
*
* ECDSA using P-384 and SHA-384
*
*
* ES384 = 2;
*/
public static final int ES384_VALUE = 2;
/**
*
* ECDSA using P-521 and SHA-512
*
*
* ES512 = 3;
*/
public static final int ES512_VALUE = 3;
@java.lang.Override
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static JwtEcdsaAlgorithm valueOf(int value) {
return forNumber(value);
}
public static JwtEcdsaAlgorithm forNumber(int value) {
switch (value) {
case 0: return ES_UNKNOWN;
case 1: return ES256;
case 2: return ES384;
case 3: return ES512;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
JwtEcdsaAlgorithm> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
@java.lang.Override
public JwtEcdsaAlgorithm findValueByNumber(int number) {
return JwtEcdsaAlgorithm.forNumber(number);
}
};
public static com.google.protobuf.Internal.EnumVerifier
internalGetVerifier() {
return JwtEcdsaAlgorithmVerifier.INSTANCE;
}
private static final class JwtEcdsaAlgorithmVerifier implements
com.google.protobuf.Internal.EnumVerifier {
static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new JwtEcdsaAlgorithmVerifier();
@java.lang.Override
public boolean isInRange(int number) {
return JwtEcdsaAlgorithm.forNumber(number) != null;
}
};
private final int value;
private JwtEcdsaAlgorithm(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.crypto.tink.JwtEcdsaAlgorithm)
}