org.bouncycastle.dvcs.VPKCRequestData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bcpkix-lts8on Show documentation
Show all versions of bcpkix-lts8on Show documentation
The Bouncy Castle Java APIs for CMS, PKCS, EAC, TSP, CMP, CRMF, OCSP, and certificate generation. This jar contains APIs for JDK 1.8 and up. The APIs are designed primarily to be used in conjunction with the BC LTS provider but may also be used with other providers providing cryptographic services.
package org.bouncycastle.dvcs;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.bouncycastle.asn1.dvcs.Data;
import org.bouncycastle.asn1.dvcs.TargetEtcChain;
/**
* Data piece of DVCS request to VPKC service (Verify Public Key Certificates).
* It contains VPKC-specific interface.
*
* This objects are constructed internally,
* to build DVCS request to VPKC service use VPKCRequestBuilder.
*
*/
public class VPKCRequestData
extends DVCSRequestData
{
private List chains;
VPKCRequestData(Data data)
throws DVCSConstructionException
{
super(data);
TargetEtcChain[] certs = data.getCerts();
if (certs == null)
{
throw new DVCSConstructionException("DVCSRequest.data.certs should be specified for VPKC service");
}
chains = new ArrayList(certs.length);
for (int i = 0; i != certs.length; i++)
{
chains.add(new TargetChain(certs[i]));
}
}
/**
* Get contained certs choice data..
*
* @return a list of CertChain objects.
*/
public List getCerts()
{
return Collections.unmodifiableList(chains);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy