Home | History | Annotate | Download | only in x509

Lines Matching refs:KeyUsage

8  * The KeyUsage object.
10 * id-ce-keyUsage OBJECT IDENTIFIER ::= { id-ce 15 }
12 * KeyUsage ::= BIT STRING {
24 public class KeyUsage
39 public static KeyUsage getInstance(Object obj) // needs to be DERBitString for other VMs
41 if (obj instanceof KeyUsage)
43 return (KeyUsage)obj;
47 return new KeyUsage(DERBitString.getInstance(obj));
53 public static KeyUsage fromExtensions(Extensions extensions)
55 return KeyUsage.getInstance(extensions.getExtensionParsedValue(Extension.keyUsage));
63 * e.g. (KeyUsage.keyEncipherment | KeyUsage.dataEncipherment)
65 public KeyUsage(
71 private KeyUsage(
104 return "KeyUsage: 0x" + Integer.toHexString(data[0] & 0xff);
106 return "KeyUsage: 0x" + Integer.toHexString((data[1] & 0xff) << 8 | (data[0] & 0xff));