Class KeyUsageBCFips
java.lang.Object
com.itextpdf.bouncycastlefips.asn1.ASN1EncodableBCFips
com.itextpdf.bouncycastlefips.asn1.x509.KeyUsageBCFips
- All Implemented Interfaces:
-
IASN1Encodable
,IKeyUsage
Wrapper class for
KeyUsage
.
-
Constructor Summary
ConstructorDescriptionKeyUsageBCFips
(org.bouncycastle.asn1.x509.KeyUsage keyUsage) Creates new wrapper instance forKeyUsage
. -
Method Summary
Modifier and TypeMethodDescriptionint
GetsdigitalSignature
constant for the wrapped KeyUsage.static KeyUsageBCFips
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.bouncycastlefips.asn1.ASN1EncodableBCFips
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
-
KeyUsageBCFips
public KeyUsageBCFips(org.bouncycastle.asn1.x509.KeyUsage keyUsage) Creates new wrapper instance forKeyUsage
.- Parameters:
-
keyUsage
-KeyUsage
to be wrapped
-
-
Method Details
-
getInstance
Gets wrapper instance.- Returns:
-
KeyUsageBCFips
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.
-