Class KeyUsageBC
java.lang.Object
com.itextpdf.bouncycastle.asn1.ASN1EncodableBC
com.itextpdf.bouncycastle.asn1.x509.KeyUsageBC
- All Implemented Interfaces:
-
IASN1Encodable
,IKeyUsage
Wrapper class for
KeyUsage
.
-
Constructor Summary
ConstructorDescriptionKeyUsageBC
(org.bouncycastle.asn1.x509.KeyUsage keyUsage) Creates new wrapper instance forKeyUsage
. -
Method Summary
Modifier and TypeMethodDescriptionint
GetsdigitalSignature
constant for the wrapped KeyUsage.static KeyUsageBC
Gets wrapper instance.org.bouncycastle.asn1.x509.KeyUsage
Gets actual org.bouncycastle object being wrapped.int
GetsnonRepudiation
constant for the wrapped KeyUsage.Methods inherited from class com.itextpdf.bouncycastle.asn1.ASN1EncodableBC
equals, getEncodable, hashCode, isNull, toASN1Primitive, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.itextpdf.commons.bouncycastle.asn1.IASN1Encodable
isNull, toASN1Primitive
-
Constructor Details
-
KeyUsageBC
public KeyUsageBC(org.bouncycastle.asn1.x509.KeyUsage keyUsage) Creates new wrapper instance forKeyUsage
.- Parameters:
-
keyUsage
-KeyUsage
to be wrapped
-
-
Method Details
-
getInstance
Gets wrapper instance.- Returns:
-
KeyUsageBC
instance.
-
getKeyUsage
public org.bouncycastle.asn1.x509.KeyUsage getKeyUsage()Gets actual org.bouncycastle object being wrapped.- Returns:
-
wrapped
KeyUsage
.
-
getDigitalSignature
public int getDigitalSignature()GetsdigitalSignature
constant for the wrapped KeyUsage.- Specified by:
-
getDigitalSignature
in interfaceIKeyUsage
- Returns:
- KeyUsage.digitalSignature value.
-
getNonRepudiation
public int getNonRepudiation()GetsnonRepudiation
constant for the wrapped KeyUsage.- Specified by:
-
getNonRepudiation
in interfaceIKeyUsage
- Returns:
- KeyUsage.nonRepudiation value.
-