public class C509CertificationRequestTemplate
extends java.lang.Object
C509CertificationRequestTemplate = [
c509CertificationRequestTemplateType: int,
c509CertificationRequestType: [+ int] / undefined,
subjectSignatureAlgorithm: [+ AlgorithmIdentifier] / undefined,
subject: NameTemplate / undefined,
subjectPublicKeyAlgorithm: [+ AlgorithmIdentifier] / undefined,
subjectPublicKey: undefined,
extensionsRequest: ExtensionsTemplate / undefined,
]
The CBOR simple value undefined marks the fields the client is expected to fill
in - represented here as null returns from the accessors.| Modifier and Type | Class and Description |
|---|---|
static class |
C509CertificationRequestTemplate.ExtensionTemplate
An ExtensionTemplate group (Section 4.4): an extension with an "optional" flag
and a prescribed or partial value.
|
static class |
C509CertificationRequestTemplate.RDNAttributeTemplate
An RDNAttributeTemplate group (Section 4.4): an attribute type with its minimum
and maximum number of occurrences and an optional prescribed value.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_SIMPLE
Simple C509 Certification Request Template (Section 8.5).
|
| Constructor and Description |
|---|
C509CertificationRequestTemplate(int templateType,
int[] requestTypes,
C509AlgorithmIdentifier[] signatureAlgorithms,
C509CertificationRequestTemplate.RDNAttributeTemplate[] subjectTemplate,
C509AlgorithmIdentifier[] publicKeyAlgorithms,
C509CertificationRequestTemplate.ExtensionTemplate[] extensionsTemplate)
Base constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
getCertificationRequestTypes()
Return the certification request types the server accepts, or null when the
client chooses.
|
byte[] |
getEncoded()
Return the complete CBOR encoding of this template.
|
C509CertificationRequestTemplate.ExtensionTemplate[] |
getExtensionsTemplate()
Return the extensions template, or null when the client chooses the extension
request.
|
static C509CertificationRequestTemplate |
getInstance(byte[] encoding)
Parse a C509 certification request template from its CBOR encoding.
|
C509AlgorithmIdentifier[] |
getSubjectPublicKeyAlgorithms()
Return the subject public key algorithms the server accepts, or null when the
client chooses.
|
C509AlgorithmIdentifier[] |
getSubjectSignatureAlgorithms()
Return the subject signature algorithms the server accepts, or null when the
client chooses.
|
C509CertificationRequestTemplate.RDNAttributeTemplate[] |
getSubjectTemplate()
Return the subject name template, or null when the client provides the subject.
|
int |
getTemplateType() |
public static final int TYPE_SIMPLE
public C509CertificationRequestTemplate(int templateType,
int[] requestTypes,
C509AlgorithmIdentifier[] signatureAlgorithms,
C509CertificationRequestTemplate.RDNAttributeTemplate[] subjectTemplate,
C509AlgorithmIdentifier[] publicKeyAlgorithms,
C509CertificationRequestTemplate.ExtensionTemplate[] extensionsTemplate)
public static C509CertificationRequestTemplate getInstance(byte[] encoding) throws java.io.IOException
java.io.IOExceptionpublic byte[] getEncoded()
throws java.io.IOException
java.io.IOExceptionpublic int getTemplateType()
public int[] getCertificationRequestTypes()
public C509AlgorithmIdentifier[] getSubjectSignatureAlgorithms()
public C509CertificationRequestTemplate.RDNAttributeTemplate[] getSubjectTemplate()
public C509AlgorithmIdentifier[] getSubjectPublicKeyAlgorithms()
public C509CertificationRequestTemplate.ExtensionTemplate[] getExtensionsTemplate()