com.google.crypto.tink.proto.JwtRsaSsaPkcs1Algorithm Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: proto/jwt_rsa_ssa_pkcs1.proto
package com.google.crypto.tink.proto;
/**
*
* See https://datatracker.ietf.org/doc/html/rfc7518#section-3.3
*
*
* Protobuf enum {@code google.crypto.tink.JwtRsaSsaPkcs1Algorithm}
*/
public enum JwtRsaSsaPkcs1Algorithm
implements com.google.protobuf.Internal.EnumLite {
/**
* RS_UNKNOWN = 0;
*/
RS_UNKNOWN(0),
/**
*
* RSASSA-PKCS1-v1_5 using SHA-256
*
*
* RS256 = 1;
*/
RS256(1),
/**
*
* RSASSA-PKCS1-v1_5 using SHA-384
*
*
* RS384 = 2;
*/
RS384(2),
/**
*
* RSASSA-PKCS1-v1_5 using SHA-512
*
*
* RS512 = 3;
*/
RS512(3),
UNRECOGNIZED(-1),
;
/**
* RS_UNKNOWN = 0;
*/
public static final int RS_UNKNOWN_VALUE = 0;
/**
*
* RSASSA-PKCS1-v1_5 using SHA-256
*
*
* RS256 = 1;
*/
public static final int RS256_VALUE = 1;
/**
*
* RSASSA-PKCS1-v1_5 using SHA-384
*
*
* RS384 = 2;
*/
public static final int RS384_VALUE = 2;
/**
*
* RSASSA-PKCS1-v1_5 using SHA-512
*
*
* RS512 = 3;
*/
public static final int RS512_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 JwtRsaSsaPkcs1Algorithm valueOf(int value) {
return forNumber(value);
}
public static JwtRsaSsaPkcs1Algorithm forNumber(int value) {
switch (value) {
case 0: return RS_UNKNOWN;
case 1: return RS256;
case 2: return RS384;
case 3: return RS512;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
JwtRsaSsaPkcs1Algorithm> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
@java.lang.Override
public JwtRsaSsaPkcs1Algorithm findValueByNumber(int number) {
return JwtRsaSsaPkcs1Algorithm.forNumber(number);
}
};
public static com.google.protobuf.Internal.EnumVerifier
internalGetVerifier() {
return JwtRsaSsaPkcs1AlgorithmVerifier.INSTANCE;
}
private static final class JwtRsaSsaPkcs1AlgorithmVerifier implements
com.google.protobuf.Internal.EnumVerifier {
static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new JwtRsaSsaPkcs1AlgorithmVerifier();
@java.lang.Override
public boolean isInRange(int number) {
return JwtRsaSsaPkcs1Algorithm.forNumber(number) != null;
}
};
private final int value;
private JwtRsaSsaPkcs1Algorithm(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.crypto.tink.JwtRsaSsaPkcs1Algorithm)
}