public class KeyUsageCondition extends Condition
| Constructor and Description |
|---|
KeyUsageCondition(KeyUsageBit bit,
boolean value)
Constructs a new KeyUsageCondition.
|
KeyUsageCondition(String usage,
boolean value)
Constructs a new KeyUsageCondition.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(CertificateToken certificateToken) |
KeyUsageBit |
getBit()
Returns the key usage to be checked.
|
boolean |
getValue()
Returns the required bit value of the key usage to be checked.
|
String |
toString() |
String |
toString(String indent) |
public KeyUsageCondition(KeyUsageBit bit, boolean value)
bit - the key usagevalue - the required value of the key usage bitpublic KeyUsageCondition(String usage, boolean value)
usage - the key usagevalue - the required value of the key usage bitpublic final KeyUsageBit getBit()
nullpublic final boolean getValue()
public boolean check(CertificateToken certificateToken)
Copyright © 2019. All rights reserved.