FileDocCategorySizeDatePackage
X509KeyUsage.javaAPI DocAzureus 3.0.3.41770Tue Jun 08 05:13:00 BST 2004org.bouncycastle.jce

X509KeyUsage

public class X509KeyUsage extends Object implements org.bouncycastle.asn1.DEREncodable
A holding class for constructing an X509 Key Usage extension.
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) }

Fields Summary
public static final int
digitalSignature
public static final int
nonRepudiation
public static final int
keyEncipherment
public static final int
dataEncipherment
public static final int
keyAgreement
public static final int
keyCertSign
public static final int
cRLSign
public static final int
encipherOnly
public static final int
decipherOnly
private int
usage
Constructors Summary
public X509KeyUsage(int usage)
Basic constructor.

param
usage - the bitwise OR of the Key Usage flags giving the allowed uses for the key. e.g. (X509KeyUsage.keyEncipherment | X509KeyUsage.dataEncipherment)


                                  
     
         
    
        this.usage = usage;
    
Methods Summary
public org.bouncycastle.asn1.DERObjectgetDERObject()

        return new KeyUsage(usage);