public class KeyUsage
extends java.lang.Object
implements java.io.Serializable
Class that provides a list of key usage bit-values to match with the correspondent bits present in the keyUsage certificate Extension. The assertion is verified if the KeyUsage Extension is present in the certificate and all key usage bits provided are matched with the corresponding bit in the certificate KeyUsage Extension.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
| Constructor and Description |
|---|
KeyUsage()
Constructor method for the class KeyUsage.java.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addNewKeyUsageBit(KeyUsageBit kub)
Adds a new Key Usage Bit to the list if there is free space.
|
boolean |
checkCertificate(java.security.cert.X509Certificate cert)
Checks if the input certificate has the same key usage set that this object.
|
java.util.List<KeyUsageBit> |
getKeyUsageBitList()
Gets the key usage bit list.
|
boolean |
isThereSomeKeyUsageBit()
Checks if there is at least one key usage bit.
|
public final java.util.List<KeyUsageBit> getKeyUsageBitList()
public final boolean isThereSomeKeyUsageBit()
true if there is at least one key usage bit, otherwise false.public final boolean addNewKeyUsageBit(KeyUsageBit kub)
kub - Key Usage Bit to add.true if the input parameter not is null and there is
free space in the list, otherwise false.public final boolean checkCertificate(java.security.cert.X509Certificate cert)
cert - Certificate to check.true if the input certificate has the same key usage set that this object,
otherwise false.