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 KeyUsageBC
INSTANCE
-
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 int
getDigitalSignature()
GetsdigitalSignature
constant for the wrapped KeyUsage.static KeyUsageBC
getInstance()
Gets wrapper instance.org.bouncycastle.asn1.x509.KeyUsage
getKeyUsage()
Gets actual org.bouncycastle object being wrapped.int
getNonRepudiation()
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
-
-
-
-
Field Detail
-
INSTANCE
private static final KeyUsageBC INSTANCE
-
-
Method Detail
-
getInstance
public static KeyUsageBC 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.
-
-