public interface CompleteCertificateRefs extends XMLStructure
CompleteCertificateRefs
element as
defined in ETSI TS 101 933 v1.3.2.
<xsd:element name="CompleteCertificateRefs" type="CompleteCertificateRefsType"/> <xsd:complexType name="CompleteCertificateRefsType"> <xsd:sequence> <xsd:element name="CertRefs" type="CertIDListType" /> </xsd:sequence> <xsd:attribute name="Id" type="xsd:ID" use="optional"/> </xsd:complexType>
CompleteCertificateRefs
property may be created by invoking
one of the
newCompleteCertificateRefs
methods of the
QualifyingPropertiesFactory
class; for example:
XMLSignatureFactory sfac = XMLSignatureFactory.getInstance("DOM"); QualifyingPropertiesFactory qfac = QualifyingPropertiesFactory.getInstance("DOM"); List certRefs = new ArrayList(); Iterator certs = certChain.iterator(); while (certs.hasNext()) { X509Certificate cert = (X509Certificate) certs.next(); CertID certID = qfac.newCertID(null, cert, sfac.newDigestMethod(DigestMethod.SHA1, null)); certRefs.add(certID); } CompleteCertificateRefs ccrefs = qfac.newCompleteCertificateRefs(certRefs, "CompleteCertificateRefs");
Modifier and Type | Field and Description |
---|---|
static String |
LOCAL_NAME
The local name of this element.
|
Modifier and Type | Method and Description |
---|---|
List |
getCertRefs()
Returns the list of certificate references
|
String |
getId()
Returns the
id -attribute value |
isFeatureSupported
static final String LOCAL_NAME
© 2002-2005 IAIK, © 2004, 2006 - 2017 Stiftung SIC