public interface CRLRef extends XMLStructure
CRLRef
element as defined in ETSI TS 101
933 v1.3.2.
The XML Schema Definition is defined as:
<xsd:complexType name="CRLRefType"> <xsd:sequence> <xsd:element name="DigestAlgAndValue" type="DigestAlgAndValueType"/> <xsd:element name="CRLIdentifier" type="CRLIdentifierType" minOccurs="0"/> </xsd:sequence> </xsd:complexType>
A CRLRef
element may be created by invoking one of the
newCRLRef
method of the
QualifyingPropertiesFactory
class.
Modifier and Type | Method and Description |
---|---|
CRLIdentifier |
getCRLIdentifier()
Returns the CRL identifier
|
DigestAlgAndValue |
getDigestAlgAndValue()
Returns the digest of the referenced CRL.
|
boolean |
validate(XMLCryptoContext context,
Data digestInput)
Validates the digest value.
|
isFeatureSupported
CRLIdentifier getCRLIdentifier()
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