public enum ChecksumType extends Enum<ChecksumType> implements Comparable<ChecksumType>
Enum Constant and Description |
---|
CRC32
The CRC32 checksum type (RFC3961).
|
DES_MAC
The des-mac checksum type (RFC3961).
|
DES_MAC_K
The des-mac-k checksum type (RFC3961).
|
HMAC_MD5
The hmac-md5 checksum type (RFC4757).
|
HMAC_SHA1_96_AES128
The hmac-sha1-96-aes128 checksum type (RFC3962).
|
HMAC_SHA1_96_AES256
The hmac-sha1-96-aes256 checksum type (RFC3962).
|
HMAC_SHA1_DES3
The hmac-sha1-des3 checksum type.
|
HMAC_SHA1_DES3_KD
The hmac-sha1-des3-kd checksum type (RFC3961).
|
HMAC_SHA256_128_AES128
The hmac-sha256-128-aes128 checksum type (RFC8009).
|
HMAC_SHA384_192_AES256
The hmac-sha384-192-aes256 checksum type (RFC8009).
|
NULL
The "null" checksum type.
|
RSA_MD4
The rsa-md4 checksum type (RFC3961).
|
RSA_MD4_DES
The rsa-md4-des checksum type (RFC3961).
|
RSA_MD4_DES_K
The rsa-md4-des-k checksum type (RFC3961).
|
RSA_MD5
The rsa-md5 checksum type (RFC3961).
|
RSA_MD5_DES
The rsa-md5-des checksum type (RFC3961).
|
RSA_MD5_DES3
The rsa-md5-des3 checksum type.
|
SHA1
The sha1 (unkeyed) checksum type.
|
SHA1_2
The sha1 (unkeyed) checksum type.
|
UNKNOWN
The "unknown" checksum type.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the name associated with this checksum type.
|
static ChecksumType |
getTypeByValue(int type)
Returns the checksum type when specified by its value.
|
int |
getValue()
Returns the number associated with this checksum type.
|
String |
toString() |
static ChecksumType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChecksumType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
compareTo
public static final ChecksumType UNKNOWN
public static final ChecksumType NULL
public static final ChecksumType CRC32
public static final ChecksumType RSA_MD4
public static final ChecksumType RSA_MD4_DES
public static final ChecksumType DES_MAC
public static final ChecksumType DES_MAC_K
public static final ChecksumType RSA_MD4_DES_K
public static final ChecksumType RSA_MD5
public static final ChecksumType RSA_MD5_DES
public static final ChecksumType RSA_MD5_DES3
public static final ChecksumType SHA1
public static final ChecksumType HMAC_SHA1_DES3_KD
public static final ChecksumType HMAC_SHA1_DES3
public static final ChecksumType SHA1_2
public static final ChecksumType HMAC_SHA1_96_AES128
public static final ChecksumType HMAC_SHA1_96_AES256
public static final ChecksumType HMAC_SHA256_128_AES128
public static final ChecksumType HMAC_SHA384_192_AES256
public static final ChecksumType HMAC_MD5
public static ChecksumType[] values()
for (ChecksumType c : ChecksumType.values()) System.out.println(c);
public static ChecksumType 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 static ChecksumType getTypeByValue(int type)
type
- public int getValue()
public String getName()
public String toString()
toString
in class Enum<ChecksumType>
Object.toString()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.