public class C509Extension
extends java.lang.Object
Extension = ( ( extensionID: int, extensionValue: Defined ) //
( extensionID: ~oid, extensionValue: bytes / [ bytes ] ) )
For the int-coded form the absolute value of the int is the C509 Extensions
Registry value, the sign carries criticality (negative for critical), and the value
is the specific CBOR encoding of Section 3.3. For the generic form the value is the
extnValue OCTET STRING value field, wrapped in a single element array when the
extension is critical.
Both forms materialize the DER encoding of the extension value at construction, so
an instance always answers getExtnId() and getExtnValue()
regardless of the wire form used.
| Modifier and Type | Method and Description |
|---|---|
org.bouncycastle.asn1.ASN1ObjectIdentifier |
getExtnId()
Return the extension's object identifier - resolved from the registry for the
int-coded form.
|
byte[] |
getExtnValue()
Return the DER encoding of the extension value (the extnValue OCTET STRING
value field).
|
java.lang.Long |
getRegistryValue()
Return the C509 Extensions Registry value when this extension is carried in the
int-coded form, or null when it uses the generic ~oid form.
|
boolean |
isCritical()
Return true if the extension is critical.
|
public java.lang.Long getRegistryValue()
public boolean isCritical()
public org.bouncycastle.asn1.ASN1ObjectIdentifier getExtnId()
public byte[] getExtnValue()