Package org.bouncycastle.pkcs
Class DeltaCertificateRequestAttributeValueBuilder
- java.lang.Object
-
- org.bouncycastle.pkcs.DeltaCertificateRequestAttributeValueBuilder
-
public class DeltaCertificateRequestAttributeValueBuilder extends java.lang.ObjectBuilder for the delta certificate request attribute defined in draft-bonnell-lamps-chameleon-certs §5.DeltaCertificateRequestValue ::= SEQUENCE { subject [0] EXPLICIT Name OPTIONAL, subjectPKInfo SubjectPublicKeyInfo, extensions [1] EXPLICIT Extensions OPTIONAL, signatureAlgorithm [2] EXPLICIT AlgorithmIdentifier OPTIONAL }The builder emits every field the caller set; to encode only the fields that differ from a base CSR (§5.1), pass the result throughDeltaCertAttributeUtils.trimDeltaCertificateRequest(org.bouncycastle.pkcs.DeltaCertificateRequestAttributeValue, org.bouncycastle.pkcs.PKCS10CertificationRequest).
-
-
Constructor Summary
Constructors Constructor Description DeltaCertificateRequestAttributeValueBuilder(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo subjectPublicKey)Base constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeltaCertificateRequestAttributeValuebuild()Build the configuredDeltaCertificateRequestAttributeValue.DeltaCertificateRequestAttributeValueBuildersetExtensions(org.bouncycastle.asn1.x509.Extensions extensions)Set the extensions declared in the delta request.DeltaCertificateRequestAttributeValueBuildersetSignatureAlgorithm(org.bouncycastle.asn1.x509.AlgorithmIdentifier signatureAlgorithm)Set the signature algorithm declared in the delta request; when unset the delta request reuses the base request's signature algorithm.DeltaCertificateRequestAttributeValueBuildersetSubject(org.bouncycastle.asn1.x500.X500Name subject)Set the subject declared in the delta request; when unset the delta request reuses the base request's subject.
-
-
-
Method Detail
-
setSignatureAlgorithm
public DeltaCertificateRequestAttributeValueBuilder setSignatureAlgorithm(org.bouncycastle.asn1.x509.AlgorithmIdentifier signatureAlgorithm)
Set the signature algorithm declared in the delta request; when unset the delta request reuses the base request's signature algorithm.- Parameters:
signatureAlgorithm- the signature algorithm identifier.- Returns:
- this builder.
-
setSubject
public DeltaCertificateRequestAttributeValueBuilder setSubject(org.bouncycastle.asn1.x500.X500Name subject)
Set the subject declared in the delta request; when unset the delta request reuses the base request's subject.- Parameters:
subject- the subject distinguished name.- Returns:
- this builder.
-
setExtensions
public DeltaCertificateRequestAttributeValueBuilder setExtensions(org.bouncycastle.asn1.x509.Extensions extensions)
Set the extensions declared in the delta request.- Parameters:
extensions- the extensions to attach to the delta request.- Returns:
- this builder.
-
build
public DeltaCertificateRequestAttributeValue build()
Build the configuredDeltaCertificateRequestAttributeValue.- Returns:
- the resulting attribute value.
-
-