Class KeyUsageBC
- java.lang.Object
-
- com.itextpdf.bouncycastle.asn1.ASN1EncodableBC
-
- com.itextpdf.bouncycastle.asn1.x509.KeyUsageBC
-
- All Implemented Interfaces:
IASN1Encodable,IKeyUsage
public class KeyUsageBC extends ASN1EncodableBC implements IKeyUsage
Wrapper class forKeyUsage.
-
-
Field Summary
Fields Modifier and Type Field Description private static KeyUsageBCINSTANCE
-
Constructor Summary
Constructors Constructor Description KeyUsageBC(org.bouncycastle.asn1.x509.KeyUsage keyUsage)Creates new wrapper instance forKeyUsage.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDigitalSignature()GetsdigitalSignatureconstant for the wrapped KeyUsage.static KeyUsageBCgetInstance()Gets wrapper instance.org.bouncycastle.asn1.x509.KeyUsagegetKeyUsage()Gets actual org.bouncycastle object being wrapped.intgetNonRepudiation()GetsnonRepudiationconstant 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
-
-
-
-
Field Detail
-
INSTANCE
private static final KeyUsageBC INSTANCE
-
-
Method Detail
-
getInstance
public static KeyUsageBC 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.
-
-