public class OCSPReference extends XAdESBaseElement
OcspRef element references one OCSP response. Each reference
contains:
OCSPIdentifier element) that includes an
identifier of the responder and an indication of the time when the response
was generated. The responder may be identified by its name, using the
Byname element within ResponderID. It may also be
identified by the digest of the server's public key computed as mandated in
RFC 2560 [8] , using the ByKey element. In this case the
content of the ByKey element will be the DER value of the
byKey field defined in RFC 2560, base-64 encoded. The contents
of ByName element MUST follow the rules established by XMLDSIG
in its clause 4.4.4 for strings representing Distinguished Names. The
generation time indication appears in the ProducedAt element
and corresponds to the "ProducedAt" field of the referenced response. The
optional URI attribute could serve to indicate where the OCSP
response identified is archived;
OCSPResponse defined
in RFC 2560, appearing within DigestAlgAndValue element.
Applications claiming alignment with the present document SHOULD include
the DigestAlgAndValue element within each OCSPRef
element.
Below follows the schema definition:
<xsd:complexType name="OCSPRefType">
<xsd:sequence>
<xsd:element name="OCSPIdentifier" type="OCSPIdentifierType"/>
<xsd:element name="DigestAlgAndValue" type="DigestAlgAndValueType" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
mContext, mElement, mId| Constructor and Description |
|---|
OCSPReference(Context aContext,
DigestMethod aDigestMethod,
byte[] aDigestValue,
OCSPIdentifier aOCSPId) |
OCSPReference(Context aContext,
tr.gov.tubitak.uekae.esya.api.asn.ocsp.EOCSPResponse aOcspResponse,
DigestMethod aDigestMethod,
java.lang.String aURI) |
OCSPReference(org.w3c.dom.Element aElement,
Context aContext)
Construct XADESBaseElement from existing
|
| Modifier and Type | Method and Description |
|---|---|
DigestAlgAndValue |
getDigestAlgAndValue() |
java.lang.String |
getLocalName() |
OCSPIdentifier |
getOCSPIdentifier() |
tr.gov.tubitak.uekae.esya.api.signature.certval.OCSPSearchCriteria |
toSearchCriteria() |
java.lang.String |
toString() |
getNamespaceaddBigIntegerElement, addLineBreak, addLineBreak, checkNamespace, createElement, generateAndSetId, getAttribute, getBigIntegerFromElement, getChildText, getContext, getDocument, getElement, getId, insertBase64EncodedElement, insertElement, insertTextElement, selectChildElement, selectChildren, setIdpublic OCSPReference(Context aContext, DigestMethod aDigestMethod, byte[] aDigestValue, OCSPIdentifier aOCSPId)
public OCSPReference(Context aContext, tr.gov.tubitak.uekae.esya.api.asn.ocsp.EOCSPResponse aOcspResponse, DigestMethod aDigestMethod, java.lang.String aURI) throws XMLSignatureException
XMLSignatureExceptionpublic OCSPReference(org.w3c.dom.Element aElement,
Context aContext)
throws XMLSignatureException
aElement - xml elementaContext - according to contextXMLSignatureException - when structure is invalid or can not be
resolved appropriatelypublic OCSPIdentifier getOCSPIdentifier()
public DigestAlgAndValue getDigestAlgAndValue()
public tr.gov.tubitak.uekae.esya.api.signature.certval.OCSPSearchCriteria toSearchCriteria()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getLocalName()
getLocalName in class BaseElementCopyright © 2025. All rights reserved.