Class C509CertificationRequestTemplate.ExtensionTemplate

java.lang.Object
org.bouncycastle.cbor.c509.C509CertificationRequestTemplate.ExtensionTemplate
Enclosing class:
C509CertificationRequestTemplate

public static class C509CertificationRequestTemplate.ExtensionTemplate extends Object
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

    Constructors
    Constructor
    Description
    ExtensionTemplate(int registryValue, boolean optional, byte[] valueEncoding)
     
    ExtensionTemplate(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, boolean optional, byte[] valueEncoding)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bouncycastle.asn1.ASN1ObjectIdentifier
    Return 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
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public Integer 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.