CPDRequestBuilder (Bouncy Castle Library 1.54 API Specification)
Date: 2015-12-29

org.bouncycastle.dvcs

## Class CPDRequestBuilder

- java.lang.Object
- - org.bouncycastle.dvcs.DVCSRequestBuilder
  - - org.bouncycastle.dvcs.CPDRequestBuilder

-     public class CPDRequestBuilder
      extends DVCSRequestBuilder

  Builder of DVCSRequests to CPD service (Certify Possession of Data).

- - ### Field Summary

    - ### Fields inherited from class org.bouncycastle.dvcs.DVCSRequestBuilder

      `requestInformationBuilder`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `CPDRequestBuilder()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `DVCSRequest` | `build(byte[] messageBytes)` Build CPD request.

    - ### Methods inherited from class org.bouncycastle.dvcs.DVCSRequestBuilder

      `addExtension, createDVCRequest, setDataLocations, setDataLocations, setDVCS, setDVCS, setNonce, setRequester`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### CPDRequestBuilder

          public CPDRequestBuilder()

  - ### Method Detail

    - #### build

          public DVCSRequest build(byte[] messageBytes)
                            throws DVCSException

      Build CPD request.
      Parameters:
        `messageBytes` - - data to be certified
      Returns:
        a DVSCRequest based on the builder's current state and messageBytes.
      Throws:
        `DVCSException` - on a build issue.