org.metastatic.jessie.pki.ext

Class 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 org.metastatic.jessie.pki.ext.Extension.Value

encoded

Constructor Summary

KeyUsage(byte[] encoded)

Method Summary

BitString
getKeyUsage()

Methods inherited from class org.metastatic.jessie.pki.ext.Extension.Value

equals, getEncoded, toString

Field Details

CRL_SIGN

public static final int CRL_SIGN
Field Value:
6

DATA_ENCIPHERMENT

public static final int DATA_ENCIPHERMENT
Field Value:
3

DECIPHER_ONLY

public static final int DECIPHER_ONLY
Field Value:
8

DIGITAL_SIGNATURE

public static final int DIGITAL_SIGNATURE
Field Value:
0

ENCIPHER_ONLY

public static final int ENCIPHER_ONLY
Field Value:
7

ID

public static final OID ID

KEY_AGREEMENT

public static final int KEY_AGREEMENT
Field Value:
4

KEY_CERT_SIGN

public static final int KEY_CERT_SIGN
Field Value:
5

KEY_ENCIPHERMENT

public static final int KEY_ENCIPHERMENT
Field Value:
2

NON_REPUDIATION

public static final int NON_REPUDIATION
Field Value:
1

Constructor Details

KeyUsage

public KeyUsage(byte[] encoded)
            throws IOException

Method Details

getKeyUsage

public BitString getKeyUsage()