public enum HashType extends Enum<HashType> implements com.google.protobuf.Internal.EnumLite
google.crypto.tink.HashType| Enum Constant and Description |
|---|
SHA1
Using SHA1 for digital signature is deprecated but HMAC-SHA1 is
|
SHA224
SHA224 = 5; |
SHA256
SHA256 = 3; |
SHA384
fine.
|
SHA512
SHA512 = 4; |
UNKNOWN_HASH
UNKNOWN_HASH = 0; |
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
SHA1_VALUE
Using SHA1 for digital signature is deprecated but HMAC-SHA1 is
|
static int |
SHA224_VALUE
SHA224 = 5; |
static int |
SHA256_VALUE
SHA256 = 3; |
static int |
SHA384_VALUE
fine.
|
static int |
SHA512_VALUE
SHA512 = 4; |
static int |
UNKNOWN_HASH_VALUE
UNKNOWN_HASH = 0; |
| Modifier and Type | Method and Description |
|---|---|
static HashType |
forNumber(int value) |
int |
getNumber() |
static com.google.protobuf.Internal.EnumLiteMap<HashType> |
internalGetValueMap() |
static com.google.protobuf.Internal.EnumVerifier |
internalGetVerifier() |
static HashType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static HashType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HashType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HashType UNKNOWN_HASH
UNKNOWN_HASH = 0;public static final HashType SHA1
Using SHA1 for digital signature is deprecated but HMAC-SHA1 is
SHA1 = 1;public static final HashType SHA384
fine.
SHA384 = 2;public static final HashType SHA256
SHA256 = 3;public static final HashType SHA512
SHA512 = 4;public static final HashType SHA224
SHA224 = 5;public static final HashType UNRECOGNIZED
public static final int UNKNOWN_HASH_VALUE
UNKNOWN_HASH = 0;public static final int SHA1_VALUE
Using SHA1 for digital signature is deprecated but HMAC-SHA1 is
SHA1 = 1;public static final int SHA384_VALUE
fine.
SHA384 = 2;public static final int SHA256_VALUE
SHA256 = 3;public static final int SHA512_VALUE
SHA512 = 4;public static final int SHA224_VALUE
SHA224 = 5;public static HashType[] values()
for (HashType c : HashType.values()) System.out.println(c);
public static HashType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLite@Deprecated public static HashType valueOf(int value)
forNumber(int) instead.value - The number of the enum to look for.public static HashType forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<HashType> internalGetValueMap()
public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()