Package org.bouncycastle.dvcs
Class DVCSRequestBuilder
java.lang.Object
org.bouncycastle.dvcs.DVCSRequestBuilder
- Direct Known Subclasses:
CCPDRequestBuilder
,CPDRequestBuilder
,VPKCRequestBuilder
,VSDRequestBuilder
Common base class for client DVCRequest builders.
This class aims at DVCSRequestInformation and TransactionIdentifier construction,
and its subclasses - for Data field construction (as it is specific for the requested service).
-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.bouncycastle.asn1.dvcs.DVCSRequestInformationBuilder
-
Constructor Summary
ModifierConstructorDescriptionprotected
DVCSRequestBuilder
(org.bouncycastle.asn1.dvcs.DVCSRequestInformationBuilder requestInformationBuilder) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addExtension
(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, boolean isCritical, org.bouncycastle.asn1.ASN1Encodable value) Add a given extension field.protected DVCSRequest
createDVCRequest
(org.bouncycastle.asn1.dvcs.Data data) void
setDataLocations
(org.bouncycastle.asn1.x509.GeneralName dataLocation) Set data location to generated requests.void
setDataLocations
(org.bouncycastle.asn1.x509.GeneralNames dataLocations) Set data location to generated requests.void
setDVCS
(org.bouncycastle.asn1.x509.GeneralName dvcs) Set DVCS name to generated requests.void
setDVCS
(org.bouncycastle.asn1.x509.GeneralNames dvcs) Set DVCS name to generated requests.void
setNonce
(BigInteger nonce) Set a nonce for this request,void
setRequester
(org.bouncycastle.asn1.x509.GeneralName requester) Set requester name.
-
Field Details
-
requestInformationBuilder
protected final org.bouncycastle.asn1.dvcs.DVCSRequestInformationBuilder requestInformationBuilder
-
-
Constructor Details
-
DVCSRequestBuilder
protected DVCSRequestBuilder(org.bouncycastle.asn1.dvcs.DVCSRequestInformationBuilder requestInformationBuilder)
-
-
Method Details
-
setNonce
Set a nonce for this request,- Parameters:
nonce
-
-
setRequester
public void setRequester(org.bouncycastle.asn1.x509.GeneralName requester) Set requester name.- Parameters:
requester
-
-
setDVCS
public void setDVCS(org.bouncycastle.asn1.x509.GeneralName dvcs) Set DVCS name to generated requests.- Parameters:
dvcs
-
-
setDVCS
public void setDVCS(org.bouncycastle.asn1.x509.GeneralNames dvcs) Set DVCS name to generated requests.- Parameters:
dvcs
-
-
setDataLocations
public void setDataLocations(org.bouncycastle.asn1.x509.GeneralName dataLocation) Set data location to generated requests.- Parameters:
dataLocation
-
-
setDataLocations
public void setDataLocations(org.bouncycastle.asn1.x509.GeneralNames dataLocations) Set data location to generated requests.- Parameters:
dataLocations
-
-
addExtension
public void addExtension(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, boolean isCritical, org.bouncycastle.asn1.ASN1Encodable value) throws DVCSException Add a given extension field.- Parameters:
oid
- the OID defining the extension type.isCritical
- true if the extension is critical, false otherwise.value
- the ASN.1 structure that forms the extension's value.- Throws:
DVCSException
- if there is an issue encoding the extension for adding.
-
createDVCRequest
- Throws:
DVCSException
-