Package org.bouncycastle.dvcs
Class VPKCRequestBuilder
- java.lang.Object
-
- org.bouncycastle.dvcs.DVCSRequestBuilder
-
- org.bouncycastle.dvcs.VPKCRequestBuilder
-
public class VPKCRequestBuilder extends DVCSRequestBuilder
Builder of DVC requests to VPKC service (Verify Public Key Certificates).
-
-
Field Summary
-
Fields inherited from class org.bouncycastle.dvcs.DVCSRequestBuilder
requestInformationBuilder
-
-
Constructor Summary
Constructors Constructor Description VPKCRequestBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTargetChain(org.bouncycastle.asn1.x509.Extension extension)
Adds a TargetChain representing a single X.509 Extension to the requestvoid
addTargetChain(X509CertificateHolder cert)
Adds a TargetChain representing a X.509 certificate to the request.void
addTargetChain(TargetChain targetChain)
Adds a X.509 certificate to the request.DVCSRequest
build()
Build DVCS request to VPKC service.void
setRequestTime(java.util.Date requestTime)
-
Methods inherited from class org.bouncycastle.dvcs.DVCSRequestBuilder
addExtension, createDVCRequest, setDataLocations, setDataLocations, setDVCS, setDVCS, setNonce, setRequester
-
-
-
-
Method Detail
-
addTargetChain
public void addTargetChain(X509CertificateHolder cert)
Adds a TargetChain representing a X.509 certificate to the request.- Parameters:
cert
- the certificate to be added
-
addTargetChain
public void addTargetChain(org.bouncycastle.asn1.x509.Extension extension)
Adds a TargetChain representing a single X.509 Extension to the request- Parameters:
extension
- the extension to be added.
-
addTargetChain
public void addTargetChain(TargetChain targetChain)
Adds a X.509 certificate to the request.- Parameters:
targetChain
- the CertChain object to be added.
-
setRequestTime
public void setRequestTime(java.util.Date requestTime)
-
build
public DVCSRequest build() throws DVCSException
Build DVCS request to VPKC service.- Returns:
- a new DVCSRequest based on the state of this builder.
- Throws:
DVCSException
- if an issue occurs during construction.
-
-