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 Summary

    Constructors
    Constructor
    Description
    RDNAttributeTemplate(long registryValue, long minOccurs, long maxOccurs, byte[] valueEncoding)
     
    RDNAttributeTemplate(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, long minOccurs, long maxOccurs, byte[] valueEncoding)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bouncycastle.asn1.ASN1ObjectIdentifier
    Return the attribute type OID for the ~oid form, or null for the int form.
    long
     
    long
     
    Return the registered attribute value, or null for the ~oid form.
    byte[]
    Return the CBOR encoding of the prescribed attribute value, or null when the template leaves it undefined for the client to fill in.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RDNAttributeTemplate

      public RDNAttributeTemplate(long 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 Long 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.