public interface Extension
Extension ::= SEQUENCE {
extnID OBJECT IDENTIFIER,
critical BOOLEAN DEFAULT FALSE,
extnValue OCTET STRING
}
| Modifier and Type | Method and Description |
|---|---|
void |
encode(OutputStream out)
Writes the DER-encoded extension to
out. |
String |
getId()
Returns the OID (Object Identifier) for this extension encoded as a
string (e.g., "2.5.29.15").
|
byte[] |
getValue()
The DER-encoded value of this extension.
|
boolean |
isCritical()
Returns
true if this extension is critical. |
String getId()
boolean isCritical()
true if this extension is critical. If this is true and
an implementation does not understand this extension, it must reject it.
See RFC 3280 section 4.2 for more information.byte[] getValue()
void encode(OutputStream out) throws IOException
out.IOException - when there is an encoding error or error writing to
out