Class C509CertificationRequestTemplate.RDNAttributeTemplate
java.lang.Object
org.bouncycastle.cbor.c509.C509CertificationRequestTemplate.RDNAttributeTemplate
- Enclosing class:
C509CertificationRequestTemplate
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
ConstructorsConstructorDescriptionRDNAttributeTemplate(int registryValue, long minOccurs, long maxOccurs, byte[] valueEncoding) RDNAttributeTemplate(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, long minOccurs, long maxOccurs, byte[] valueEncoding) -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.asn1.ASN1ObjectIdentifierReturn the attribute type OID for the ~oid form, or null for the int form.longlongReturn 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.
-
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
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.
-