Package eu.europa.esig.dss.validation
Class SignatureCRLSource
- java.lang.Object
-
- eu.europa.esig.dss.spi.x509.revocation.crl.OfflineCRLSource
-
- eu.europa.esig.dss.validation.SignatureCRLSource
-
- All Implemented Interfaces:
CRLSource,RevocationSource<CRLToken>,SignatureRevocationSource<CRLToken>,Serializable
- Direct Known Subclasses:
CMSCRLSource,ListCRLSource,PAdESCRLSource,XAdESCRLSource
public abstract class SignatureCRLSource extends OfflineCRLSource implements SignatureRevocationSource<CRLToken>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SignatureCRLSource()
-
Method Summary
Modifier and Type Method Description protected voidaddReference(CRLRef crlRef)protected voidaddReference(CRLRef crlRef, RevocationRefOrigin origin)Set<CRLRef>findRefsForRevocationToken(CRLToken revocationToken)Retrieves a set of found CRL Refs for the givenrevocationTokenList<CRLToken>findTokensFromRefs(List<CRLRef> revocationRefs)Retrieves a list of found CRL Tokens for the givenrevocationRefsList<CRLRef>getAllCRLReferences()Retrieves all found CRL RefsList<CRLToken>getAllCRLTokens()Retrieves all found CRL TokensList<CRLRef>getAttributeRevocationRefs()List<CRLToken>getAttributeRevocationValuesTokens()Retrieves the list of allRevocationTokens present in 'AttributeRevocationValues' element NOTE: Applicable only for XAdES revocation sourceList<CRLRef>getCompleteRevocationRefs()CRLRefgetCRLRefByDigest(Digest digest)Returns a containedCRLRefwith the givendigestMap<CRLBinary,List<CRLToken>>getCRLTokenMap()List<CRLToken>getDSSDictionaryTokens()Retrieves the list of allRevocationTokens present in 'DSS' dictionary NOTE: Applicable only for PAdES revocation sourceList<CRLRef>getOrphanCrlRefs()Returns a list of orphan CRL RefsList<CRLRef>getReferencesForCRLIdentifier(CRLBinary crlBinary)Returns a list ofCRLRefs assigned to the givencrlBinaryList<CRLToken>getRevocationValuesTokens()Retrieves the list of allRevocationTokens present in 'RevocationValues' element NOTE: Applicable only for CAdES and XAdES revocation sourcesList<CRLRef>getTimestampRevocationRefs()List<CRLToken>getTimestampRevocationValuesTokens()Retrieves the list of allRevocationTokens present in the Timestamp NOTE: Applicable only for CAdES revocation sourceList<CRLToken>getTimestampValidationDataTokens()Retrieves the list of allRevocationTokens present in 'TimestampValidationData' element NOTE: Applicable only for XAdES revocation sourceList<CRLToken>getVRIDictionaryTokens()Retrieves the list of allRevocationTokens present in 'VRI' dictionary NOTE: Applicable only for PAdES revocation sourcevoidpopulateCRLRevocationValues(SignatureCRLSource signatureCRLSource)Allows to fill all CRL missing revocation values from the givensignatureCRLSourceprotected voidstoreCRLToken(CRLBinary crlBinary, CRLToken crlToken)-
Methods inherited from class eu.europa.esig.dss.spi.x509.revocation.crl.OfflineCRLSource
addCRLBinary, addCRLBinary, getCRLBinaryList, getIdentifier, getIdentifier, getRevocationOrigins, getRevocationToken, isEmpty
-
-
-
-
Method Detail
-
getRevocationValuesTokens
public List<CRLToken> getRevocationValuesTokens()
Description copied from interface:SignatureRevocationSourceRetrieves the list of allRevocationTokens present in 'RevocationValues' element NOTE: Applicable only for CAdES and XAdES revocation sources- Specified by:
getRevocationValuesTokensin interfaceSignatureRevocationSource<CRLToken>- Returns:
- list of
RevocationTokens
-
getAttributeRevocationValuesTokens
public List<CRLToken> getAttributeRevocationValuesTokens()
Description copied from interface:SignatureRevocationSourceRetrieves the list of allRevocationTokens present in 'AttributeRevocationValues' element NOTE: Applicable only for XAdES revocation source- Specified by:
getAttributeRevocationValuesTokensin interfaceSignatureRevocationSource<CRLToken>- Returns:
- list of
RevocationTokens
-
getTimestampValidationDataTokens
public List<CRLToken> getTimestampValidationDataTokens()
Description copied from interface:SignatureRevocationSourceRetrieves the list of allRevocationTokens present in 'TimestampValidationData' element NOTE: Applicable only for XAdES revocation source- Specified by:
getTimestampValidationDataTokensin interfaceSignatureRevocationSource<CRLToken>- Returns:
- list of
RevocationTokens
-
getTimestampRevocationValuesTokens
public List<CRLToken> getTimestampRevocationValuesTokens()
Description copied from interface:SignatureRevocationSourceRetrieves the list of allRevocationTokens present in the Timestamp NOTE: Applicable only for CAdES revocation source- Specified by:
getTimestampRevocationValuesTokensin interfaceSignatureRevocationSource<CRLToken>- Returns:
- list of
RevocationTokens
-
getDSSDictionaryTokens
public List<CRLToken> getDSSDictionaryTokens()
Description copied from interface:SignatureRevocationSourceRetrieves the list of allRevocationTokens present in 'DSS' dictionary NOTE: Applicable only for PAdES revocation source- Specified by:
getDSSDictionaryTokensin interfaceSignatureRevocationSource<CRLToken>- Returns:
- list of
RevocationTokens
-
getVRIDictionaryTokens
public List<CRLToken> getVRIDictionaryTokens()
Description copied from interface:SignatureRevocationSourceRetrieves the list of allRevocationTokens present in 'VRI' dictionary NOTE: Applicable only for PAdES revocation source- Specified by:
getVRIDictionaryTokensin interfaceSignatureRevocationSource<CRLToken>- Returns:
- list of
RevocationTokens
-
getAllCRLTokens
public List<CRLToken> getAllCRLTokens()
Retrieves all found CRL Tokens- Returns:
- list of
CRLTokens
-
getAllCRLReferences
public List<CRLRef> getAllCRLReferences()
Retrieves all found CRL Refs- Returns:
- list of
CRLRefs
-
populateCRLRevocationValues
public void populateCRLRevocationValues(SignatureCRLSource signatureCRLSource)
Allows to fill all CRL missing revocation values from the givensignatureCRLSource- Parameters:
signatureCRLSource-SignatureCRLSourceto populate values from
-
storeCRLToken
protected void storeCRLToken(CRLBinary crlBinary, CRLToken crlToken)
- Overrides:
storeCRLTokenin classOfflineCRLSource
-
addReference
protected void addReference(CRLRef crlRef)
-
addReference
protected void addReference(CRLRef crlRef, RevocationRefOrigin origin)
-
getReferencesForCRLIdentifier
public List<CRLRef> getReferencesForCRLIdentifier(CRLBinary crlBinary)
Returns a list ofCRLRefs assigned to the givencrlBinary
-
getCRLRefByDigest
public CRLRef getCRLRefByDigest(Digest digest)
Returns a containedCRLRefwith the givendigest
-
getOrphanCrlRefs
public List<CRLRef> getOrphanCrlRefs()
Returns a list of orphan CRL Refs- Returns:
- list of
CRLRefs
-
findTokensFromRefs
public List<CRLToken> findTokensFromRefs(List<CRLRef> revocationRefs)
Retrieves a list of found CRL Tokens for the givenrevocationRefs
-
-