public interface CompleteRevocationRefs extends XMLStructure
CompleteRevocationRefs
element as
defined in ETSI TS 101 933 v1.3.2.
<xsd:element name="CompleteRevocationRefs" type="CompleteRevocationRefsType"/> <xsd:complexType name="CompleteRevocationRefsType"> <xsd:sequence> <xsd:element name="CRLRefs" type="CRLRefsType" minOccurs="0"/> <xsd:element name="OCSPRefs" type="OCSPRefsType" minOccurs="0"/> <xsd:element name="OtherRefs" type="OtherCertStatusRefsType" minOccurs="0"/> </xsd:sequence> <xsd:attribute name="Id" type="xsd:ID" use="optional"/> </xsd:complexType> <xsd:complexType name="CRLRefsType"> <xsd:sequence> <xsd:element name="CRLRef" type="CRLRefType" maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="OCSPRefsType"> <xsd:sequence> <xsd:element name="OCSPRef" type="OCSPRefType" maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="OtherCertStatusRefsType"> <xsd:sequence> <xsd:element name="OtherRef" type="AnyType" maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType>
A CompleteRevocationRefs
property may be created invoking the
newCompleteRevocationRefs
methods of the
QualifyingPropertiesFactory
class; for example:
XMLSignatureFactory sfac = XMLSignatureFactory.getInstance("DOM"); QualifyingPropertiesFactory qfac = QualifyingPropertiesFactory.getInstance("DOM"); List crlRefs = new ArrayList(); List ocspRefs = new ArrayList(); Iterator crls = crlList.iterator(); while (crls.hasNext()) { X509CRL crl = (X509CRL) crls.next(); CRLRef crlRef = qfac .newCRLRef(crl, sfac.newDigestMethod(DigestMethod.SHA1, null), null); crlRefs.add(crlRef); } Iterator ocsps = ocspList.iterator(); while (ocsps.hasNext()) { OCSPResponse resp = (OCSPResponse) ocsps.next(); OCSPRef ocspRef = qfac.newOCSPRef(resp.getEncoded(), sfac.newDigestMethod(DigestMethod.SHA1, null), null); ocspRefs.add(ocspRef); } CompleteRevocationRefs crrefs = qfac.newCompleteRevocationRefs(crlRefs, ocspRefs, null, "CompleteRevocationRefs");
Modifier and Type | Field and Description |
---|---|
static String |
LOCAL_NAME
The local name for this element.
|
Modifier and Type | Method and Description |
---|---|
List |
getCRLRefs()
Returns the CRL references.
|
String |
getId()
Returns the
id -attribute value |
List |
getOCSPRefs()
Returns the OCSPResponse references.
|
List |
getOtherRefs()
Returns the other references.
|
isFeatureSupported
static final String LOCAL_NAME
String getId()
id
-attribute valueid
-attribute value© 2002-2005 IAIK, © 2004, 2006 - 2017 Stiftung SIC