public interface OCSPRef extends XMLStructure
OCSPRef
element as defined in ETSI TS
101 933 v1.3.2.
lt;xsd:complexType name="OCSPRefType"> <xsd:sequence> <xsd:element name="OCSPIdentifier" type="OCSPIdentifierType"/> <xsd:element name="DigestAlgAndValue" type="DigestAlgAndValueType" minOccurs="0"/> </xsd:sequence> </xsd:complexType>
A OCSPRef
property may be created by invoking one of the
newOCSPRef
methods of the
QualifyingPropertiesFactory
class.
Modifier and Type | Method and Description |
---|---|
DigestAlgAndValue |
getDigestAlgAndValue()
Returns the digest of the referenced OCSP response.
|
OCSPIdentifier |
getOCSPIdentifier()
Returns the OCSP identifier.
|
boolean |
validate(XMLCryptoContext context,
Data digestInput)
Validates the digest value.
|
isFeatureSupported
OCSPIdentifier getOCSPIdentifier()
DigestAlgAndValue getDigestAlgAndValue()
boolean validate(XMLCryptoContext context, Data digestInput) throws XMLSignatureException
The input for the digest computation is obtained from the given
digestInput
if present, or alternatively from the dereferenced
URI
reference of the
CRLIdentifier
. If no digestInput
is given or no
URI reference is present or could be dereferenced successfully an
XMLSignatureException
is thrown. If no digestInput
is
given the method only validates the reference the first time it is invoked.
On subsequent invocations, it returns a cached result unless a digestinput
is provided.
context
- the validation contextdigestInput
- the input for the digest computationtrue
if the digest value validated successfully;
false
otherwiseNullPointerException
- if context
is null
XMLSignatureException
- if an unexpected exception occurs while validating the digest valueReference.validate(XMLValidateContext)
© 2002-2005 IAIK, © 2004, 2006 - 2017 Stiftung SIC