Class KeyUsage

java.lang.Object
org.apache.harmony.security.x509.ExtensionValue
org.apache.harmony.security.x509.KeyUsage

public final class KeyUsage
extends ExtensionValue
Key Usage Extension (OID = 2.5.29.15). The ASN.1 definition for Key Usage Extension is:
 id-ce-keyUsage OBJECT IDENTIFIER ::=  { id-ce 15 }

 KeyUsage ::= BIT STRING {
     digitalSignature        (0),
     nonRepudiation          (1),
     keyEncipherment         (2),
     dataEncipherment        (3),
     keyAgreement            (4),
     keyCertSign             (5),
     cRLSign                 (6),
     encipherOnly            (7),
     decipherOnly            (8)
 }
 
(as specified in RFC 3280 http://www.ietf.org/rfc/rfc3280.txt)
  • Constructor Details

    • KeyUsage

      public KeyUsage​(byte[] encoding) throws IOException
      Creates the extension object on the base of its encoded form.
      Throws:
      IOException
  • Method Details