Class C509CertificationRequestTemplate.ExtensionTemplate
java.lang.Object
org.bouncycastle.cbor.c509.C509CertificationRequestTemplate.ExtensionTemplate
- Enclosing class:
C509CertificationRequestTemplate
An ExtensionTemplate group (Section 4.4): an extension with an "optional" flag
and a prescribed or partial value. A null value encoding stands for the CBOR
undefined.
-
Constructor Summary
ConstructorsConstructorDescriptionExtensionTemplate(int registryValue, boolean optional, byte[] valueEncoding) ExtensionTemplate(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, boolean optional, byte[] valueEncoding) -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.asn1.ASN1ObjectIdentifierReturn the extension OID for the ~oid form, or null for the int form.Return the registered extension value, or null for the ~oid form.byte[]Return the CBOR encoding of the prescribed extension value, or null when the template leaves it undefined.boolean
-
Constructor Details
-
ExtensionTemplate
public ExtensionTemplate(int registryValue, boolean optional, byte[] valueEncoding) -
ExtensionTemplate
public ExtensionTemplate(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, boolean optional, byte[] valueEncoding)
-
-
Method Details
-
getRegistryValue
Return the registered extension value, or null for the ~oid form. -
getExtnId
public org.bouncycastle.asn1.ASN1ObjectIdentifier getExtnId()Return the extension OID for the ~oid form, or null for the int form. -
isOptional
public boolean isOptional() -
getValueEncoding
public byte[] getValueEncoding()Return the CBOR encoding of the prescribed extension value, or null when the template leaves it undefined.
-