Class KeyUsageBCFips

java.lang.Object
com.itextpdf.bouncycastlefips.asn1.ASN1EncodableBCFips
com.itextpdf.bouncycastlefips.asn1.x509.KeyUsageBCFips
All Implemented Interfaces:
IASN1Encodable, IKeyUsage

public class KeyUsageBCFips extends ASN1EncodableBCFips implements IKeyUsage
Wrapper class for KeyUsage.
  • Constructor Details

    • KeyUsageBCFips

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

    • getInstance

      public static KeyUsageBCFips 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()
      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.