Class DVCSRequestBuilder

java.lang.Object
org.bouncycastle.dvcs.DVCSRequestBuilder
Direct Known Subclasses:
CCPDRequestBuilder, CPDRequestBuilder, VPKCRequestBuilder, VSDRequestBuilder

public abstract class DVCSRequestBuilder extends Object
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

    Fields
    Modifier and Type
    Field
    Description
    protected final org.bouncycastle.asn1.dvcs.DVCSRequestInformationBuilder
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    DVCSRequestBuilder(org.bouncycastle.asn1.dvcs.DVCSRequestInformationBuilder requestInformationBuilder)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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
    Set a nonce for this request,
    void
    setRequester(org.bouncycastle.asn1.x509.GeneralName requester)
    Set requester name.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public void setNonce(BigInteger nonce)
      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

      protected DVCSRequest createDVCRequest(org.bouncycastle.asn1.dvcs.Data data) throws DVCSException
      Throws:
      DVCSException