gnu.crypto.pki.ext

Class Extension


public class Extension
extends Object

Nested Class Summary

static class
Extension.Value

Field Summary

protected boolean
critical
The criticality flag.
protected byte[]
encoded
The DER encoded form.
protected boolean
isSupported
Whether or not this extension is locally supported.
protected OID
oid
This extension's object identifier.
protected Extension.Value
value
The extension value.

Constructor Summary

Extension(byte[] encoded)
Extension(OID oid, Extension.Value value, boolean critical)

Method Summary

DERValue
getDerValue()
byte[]
getEncoded()
OID
getOid()
Extension.Value
getValue()
boolean
isCritical()
boolean
isSupported()
String
toString()

Field Details

critical

protected final boolean critical
The criticality flag.

encoded

protected byte[] encoded
The DER encoded form.

isSupported

protected boolean isSupported
Whether or not this extension is locally supported.

oid

protected final OID oid
This extension's object identifier.

value

protected final Extension.Value value
The extension value.

Constructor Details

Extension

public Extension(byte[] encoded)
            throws IOException

Extension

public Extension(OID oid,
                 Extension.Value value,
                 boolean critical)

Method Details

getDerValue

public DERValue getDerValue()

getEncoded

public byte[] getEncoded()

getOid

public OID getOid()

getValue

public Extension.Value getValue()

isCritical

public boolean isCritical()

isSupported

public boolean isSupported()

toString

public String toString()

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