FileDocCategorySizeDatePackage
X509KeyUsage.javaAPI DocAndroid 1.5 API1751Wed May 06 22:41:06 BST 2009org.bouncycastle.jce

X509KeyUsage

public class X509KeyUsage extends org.bouncycastle.asn1.ASN1Encodable
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.DERObjecttoASN1Object()

        return new KeyUsage(usage);