public enum CryptoServicePurpose extends java.lang.Enum<CryptoServicePurpose>
| Enum Constant and Description |
|---|
AGREEMENT |
ANY |
AUTHENTICATION |
DECRYPTION |
ENCRYPTION |
KEYGEN |
PRF |
SIGNING |
VERIFICATION |
VERIFYING |
| Modifier and Type | Method and Description |
|---|---|
static CryptoServicePurpose |
forCode(int code)
Return the purpose with the given
code. |
int |
getCode()
The stable numeric code for this purpose.
|
static CryptoServicePurpose |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CryptoServicePurpose[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CryptoServicePurpose AGREEMENT
public static final CryptoServicePurpose ENCRYPTION
public static final CryptoServicePurpose DECRYPTION
public static final CryptoServicePurpose KEYGEN
public static final CryptoServicePurpose SIGNING
public static final CryptoServicePurpose VERIFYING
public static final CryptoServicePurpose AUTHENTICATION
public static final CryptoServicePurpose VERIFICATION
public static final CryptoServicePurpose PRF
public static final CryptoServicePurpose ANY
public static CryptoServicePurpose[] values()
for (CryptoServicePurpose c : CryptoServicePurpose.values()) System.out.println(c);
public static CryptoServicePurpose valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getCode()
Enum.ordinal() - it must not shift if the constants are ever
reordered; each constant carries its own code for that reason.public static CryptoServicePurpose forCode(int code)
code.java.lang.IllegalArgumentException - if no purpose has that code.