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
ConstructorsConstructorDescriptionKeyUsageBC(org.bouncycastle.asn1.x509.KeyUsage keyUsage) Creates new wrapper instance forKeyUsage. -
Method Summary
Modifier and TypeMethodDescriptionintGetsdigitalSignatureconstant for the wrapped KeyUsage.static KeyUsageBCGets wrapper instance.org.bouncycastle.asn1.x509.KeyUsageGets actual org.bouncycastle object being wrapped.intGetsnonRepudiationconstant for the wrapped KeyUsage.Methods inherited from class com.itextpdf.bouncycastle.asn1.ASN1EncodableBC
equals, getEncodable, hashCode, isNull, toASN1Primitive, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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-KeyUsageto be wrapped
-
-
Method Details
-
getInstance
Gets wrapper instance.- Returns:
-
KeyUsageBCinstance.
-
getKeyUsage
public org.bouncycastle.asn1.x509.KeyUsage getKeyUsage()Gets actual org.bouncycastle object being wrapped.- Returns:
-
wrapped
KeyUsage.
-
getDigitalSignature
public int getDigitalSignature()GetsdigitalSignatureconstant for the wrapped KeyUsage.- Specified by:
-
getDigitalSignaturein interfaceIKeyUsage - Returns:
- KeyUsage.digitalSignature value.
-
getNonRepudiation
public int getNonRepudiation()GetsnonRepudiationconstant for the wrapped KeyUsage.- Specified by:
-
getNonRepudiationin interfaceIKeyUsage - Returns:
- KeyUsage.nonRepudiation value.
-