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 for KeyUsage.
  • Constructor Details

    • KeyUsageBC

      public KeyUsageBC (org.bouncycastle.asn1.x509.KeyUsage keyUsage)
      Creates new wrapper instance for KeyUsage.
      Parameters:
      keyUsage - KeyUsage to be wrapped
  • Method Details

    • 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()
      Gets digitalSignature constant for the wrapped KeyUsage.
      Specified by:
      getDigitalSignature in interface IKeyUsage
      Returns:
      KeyUsage.digitalSignature value.
    • getNonRepudiation

      public int getNonRepudiation()
      Gets nonRepudiation constant for the wrapped KeyUsage.
      Specified by:
      getNonRepudiation in interface IKeyUsage
      Returns:
      KeyUsage.nonRepudiation value.