Class C509CertificationRequestTemplate.RDNAttributeTemplate

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

public static class C509CertificationRequestTemplate.RDNAttributeTemplate extends Object
An RDNAttributeTemplate group (Section 4.4): an attribute type with its minimum and maximum number of occurrences and an optional prescribed value. A null value encoding stands for the CBOR undefined - the client provides the value.
  • Constructor Details

    • RDNAttributeTemplate

      public RDNAttributeTemplate(int registryValue, long minOccurs, long maxOccurs, byte[] valueEncoding)
    • RDNAttributeTemplate

      public RDNAttributeTemplate(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, long minOccurs, long maxOccurs, byte[] valueEncoding)
  • Method Details

    • getRegistryValue

      public Integer getRegistryValue()
      Return the registered attribute value, or null for the ~oid form.
    • getAttrType

      public org.bouncycastle.asn1.ASN1ObjectIdentifier getAttrType()
      Return the attribute type OID for the ~oid form, or null for the int form.
    • getMinOccurs

      public long getMinOccurs()
    • getMaxOccurs

      public long getMaxOccurs()
    • getValueEncoding

      public byte[] getValueEncoding()
      Return the CBOR encoding of the prescribed attribute value, or null when the template leaves it undefined for the client to fill in.