public enum SecretKeySpecMode extends Enum<SecretKeySpecMode>
Enum Constant and Description |
---|
AES
AES
|
DES
DES
|
DES3
3DES
|
HMAC_MD5
HmacMD5
|
HMAC_SHA1
HmacSHA1
|
HMAC_SHA224
HmacSHA224
|
HMAC_SHA256
HmacSHA256
|
HMAC_SHA384
HmacSHA384
|
HMAC_SHA512
HmacSHA512
|
SM4
SM4
|
Modifier and Type | Method and Description |
---|---|
String |
getMode() |
SecretKeySpec |
getSecretKeySpec(byte[] bs) |
static SecretKeySpecMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SecretKeySpecMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SecretKeySpecMode AES
public static final SecretKeySpecMode DES
public static final SecretKeySpecMode DES3
public static final SecretKeySpecMode SM4
public static final SecretKeySpecMode HMAC_MD5
public static final SecretKeySpecMode HMAC_SHA1
public static final SecretKeySpecMode HMAC_SHA224
public static final SecretKeySpecMode HMAC_SHA256
public static final SecretKeySpecMode HMAC_SHA384
public static final SecretKeySpecMode HMAC_SHA512
public static SecretKeySpecMode[] values()
for (SecretKeySpecMode c : SecretKeySpecMode.values()) System.out.println(c);
public static SecretKeySpecMode 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 String getMode()
public SecretKeySpec getSecretKeySpec(byte[] bs)
Copyright © 2024. All rights reserved.