For the latest news and information visit
The GNU Crypto project

gnu.crypto.pki.ext
Class KeyUsage

java.lang.Object
  extended by gnu.crypto.pki.ext.Extension.Value
      extended by gnu.crypto.pki.ext.KeyUsage

public class KeyUsage
extends Extension.Value


Field Summary
static int CRL_SIGN
           
static int DATA_ENCIPHERMENT
           
static int DECIPHER_ONLY
           
static int DIGITAL_SIGNATURE
           
static int ENCIPHER_ONLY
           
static OID ID
           
static int KEY_AGREEMENT
           
static int KEY_CERT_SIGN
           
static int KEY_ENCIPHERMENT
           
static int NON_REPUDIATION
           
 
Fields inherited from class gnu.crypto.pki.ext.Extension.Value
encoded
 
Constructor Summary
KeyUsage(byte[] encoded)
           
 
Method Summary
 BitString getKeyUsage()
           
 String toString()
           
 
Methods inherited from class gnu.crypto.pki.ext.Extension.Value
equals, getEncoded
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

public static final OID ID

DIGITAL_SIGNATURE

public static final int DIGITAL_SIGNATURE
See Also:
Constant Field Values

NON_REPUDIATION

public static final int NON_REPUDIATION
See Also:
Constant Field Values

KEY_ENCIPHERMENT

public static final int KEY_ENCIPHERMENT
See Also:
Constant Field Values

DATA_ENCIPHERMENT

public static final int DATA_ENCIPHERMENT
See Also:
Constant Field Values

KEY_AGREEMENT

public static final int KEY_AGREEMENT
See Also:
Constant Field Values

KEY_CERT_SIGN

public static final int KEY_CERT_SIGN
See Also:
Constant Field Values

CRL_SIGN

public static final int CRL_SIGN
See Also:
Constant Field Values

ENCIPHER_ONLY

public static final int ENCIPHER_ONLY
See Also:
Constant Field Values

DECIPHER_ONLY

public static final int DECIPHER_ONLY
See Also:
Constant Field Values
Constructor Detail

KeyUsage

public KeyUsage(byte[] encoded)
         throws IOException
Throws:
IOException
Method Detail

getKeyUsage

public BitString getKeyUsage()

toString

public String toString()
Overrides:
toString in class Extension.Value

For the latest news and information visit
The GNU Crypto project

Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.