com.google.crypto.tink.proto.JwtHmacAlgorithm Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tink-android Show documentation
Show all versions of tink-android Show documentation
Tink is a small cryptographic library that provides a safe, simple, agile and fast way to accomplish some common cryptographic tasks.
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/jwt_hmac.proto
// Protobuf Java Version: 4.28.2
package com.google.crypto.tink.proto;
/**
*
* See https://datatracker.ietf.org/doc/html/rfc7518#section-3.2
*
*
* Protobuf enum {@code google.crypto.tink.JwtHmacAlgorithm}
*/
public enum JwtHmacAlgorithm
implements com.google.protobuf.Internal.EnumLite {
/**
* HS_UNKNOWN = 0;
*/
HS_UNKNOWN(0),
/**
*
* HMAC using SHA-256
*
*
* HS256 = 1;
*/
HS256(1),
/**
*
* HMAC using SHA-384
*
*
* HS384 = 2;
*/
HS384(2),
/**
*
* HMAC using SHA-512
*
*
* HS512 = 3;
*/
HS512(3),
UNRECOGNIZED(-1),
;
/**
* HS_UNKNOWN = 0;
*/
public static final int HS_UNKNOWN_VALUE = 0;
/**
*
* HMAC using SHA-256
*
*
* HS256 = 1;
*/
public static final int HS256_VALUE = 1;
/**
*
* HMAC using SHA-384
*
*
* HS384 = 2;
*/
public static final int HS384_VALUE = 2;
/**
*
* HMAC using SHA-512
*
*
* HS512 = 3;
*/
public static final int HS512_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 JwtHmacAlgorithm valueOf(int value) {
return forNumber(value);
}
public static JwtHmacAlgorithm forNumber(int value) {
switch (value) {
case 0: return HS_UNKNOWN;
case 1: return HS256;
case 2: return HS384;
case 3: return HS512;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
JwtHmacAlgorithm> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
@java.lang.Override
public JwtHmacAlgorithm findValueByNumber(int number) {
return JwtHmacAlgorithm.forNumber(number);
}
};
public static com.google.protobuf.Internal.EnumVerifier
internalGetVerifier() {
return JwtHmacAlgorithmVerifier.INSTANCE;
}
private static final class JwtHmacAlgorithmVerifier implements
com.google.protobuf.Internal.EnumVerifier {
static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new JwtHmacAlgorithmVerifier();
@java.lang.Override
public boolean isInRange(int number) {
return JwtHmacAlgorithm.forNumber(number) != null;
}
};
private final int value;
private JwtHmacAlgorithm(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.crypto.tink.JwtHmacAlgorithm)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy