public enum KeyUsage extends Enum<KeyUsage>
| Enum Constant and Description |
|---|
contentCommitment |
cRLSign |
dataEncipherment |
decipherOnly |
digitalSignature |
encipherOnly |
keyAgreement |
keyCertSign |
keyEncipherment |
| Modifier and Type | Method and Description |
|---|---|
int |
getBcUsage() |
int |
getBit() |
static KeyUsage |
getKeyUsage(int bit) |
static KeyUsage |
getKeyUsage(String usage) |
static KeyUsage |
getKeyUsageFromBcUsage(int bcUsage) |
String |
getName() |
static KeyUsage |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeyUsage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyUsage digitalSignature
public static final KeyUsage contentCommitment
public static final KeyUsage keyEncipherment
public static final KeyUsage dataEncipherment
public static final KeyUsage keyAgreement
public static final KeyUsage keyCertSign
public static final KeyUsage cRLSign
public static final KeyUsage encipherOnly
public static final KeyUsage decipherOnly
public static KeyUsage[] values()
for (KeyUsage c : KeyUsage.values()) System.out.println(c);
public static KeyUsage 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 int getBit()
public int getBcUsage()
public String getName()
public static KeyUsage getKeyUsage(int bit)
public static KeyUsage getKeyUsageFromBcUsage(int bcUsage)
Copyright © 2020. All rights reserved.