
public enum KeyUsage extends Enum<KeyUsage>
| Enum Constant and Description |
|---|
cRLSign |
dataEncipherment |
decipherOnly |
digitalSignature |
encipherOnly |
keyAgreement |
keyCertSign |
keyEncipherment |
nonRepudiation |
| Modifier and Type | Method and Description |
|---|---|
boolean |
in(boolean[] booleans)
Determine whether the bit # corresponding to this enumeration is set in the given boolean array.
|
boolean |
in(KeyUsage... values)
Determine whether this instance is equal to one of the given instances.
|
boolean |
in(KeyUsage v1)
Determine whether this instance is equal to one of the given instances.
|
boolean |
in(KeyUsage v1,
KeyUsage v2)
Determine whether this instance is equal to one of the given instances.
|
boolean |
in(KeyUsage v1,
KeyUsage v2,
KeyUsage v3)
Determine whether this instance is equal to one of the given instances.
|
static boolean |
isFull(EnumSet<KeyUsage> set)
Determine whether the given set is fully populated (or "full"), meaning it contains all possible values.
|
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 nonRepudiation
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 static boolean isFull(EnumSet<KeyUsage> set)
set - the settrue if the set is full, false otherwisepublic boolean in(boolean[] booleans)
booleans - the boolean array (must not be null)true if there is a true boolean at the index corresponding to the ordinal of this constantpublic boolean in(KeyUsage v1)
v1 - the first instancetrue if one of the instances matches this one, false otherwisepublic boolean in(KeyUsage v1, KeyUsage v2)
v1 - the first instancev2 - the second instancetrue if one of the instances matches this one, false otherwisepublic boolean in(KeyUsage v1, KeyUsage v2, KeyUsage v3)
v1 - the first instancev2 - the second instancev3 - the third instancetrue if one of the instances matches this one, false otherwisepublic boolean in(KeyUsage... values)
values - the possible valuestrue if one of the instances matches this one, false otherwiseCopyright © 2020 JBoss by Red Hat. All rights reserved.