Package eu.europa.esig.dss.validation
Class SignatureOCSPSource
- java.lang.Object
-
- eu.europa.esig.dss.spi.x509.revocation.ocsp.OfflineOCSPSource
-
- eu.europa.esig.dss.validation.SignatureOCSPSource
-
- All Implemented Interfaces:
OCSPSource,RevocationSource<OCSPToken>,SignatureRevocationSource<OCSPToken>,Serializable
- Direct Known Subclasses:
CMSOCSPSource,ListOCSPSource,PAdESOCSPSource,XAdESOCSPSource
public abstract class SignatureOCSPSource extends OfflineOCSPSource implements SignatureRevocationSource<OCSPToken>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SignatureOCSPSource()
-
Method Summary
Modifier and Type Method Description protected voidaddReference(OCSPRef ocspRef)protected voidaddReference(OCSPRef ocspRef, RevocationRefOrigin origin)Set<OCSPRef>findRefsForRevocationToken(OCSPToken revocationToken)Retrieves a set of found OCSP Refs for the givenrevocationTokenList<OCSPToken>findTokensFromRefs(List<OCSPRef> revocationRefs)Retrieves a list of found OCSP Tokens for the givenrevocationRefsList<OCSPRef>getAllOCSPReferences()Retrieves all found OCSP RefsList<OCSPToken>getAllOCSPTokens()Retrieves all found OCSP TokensList<OCSPRef>getAttributeRevocationRefs()List<OCSPToken>getAttributeRevocationValuesTokens()Retrieves the list of allRevocationTokens present in 'AttributeRevocationValues' element NOTE: Applicable only for XAdES revocation sourceList<OCSPRef>getCompleteRevocationRefs()List<OCSPToken>getDSSDictionaryTokens()Retrieves the list of allRevocationTokens present in 'DSS' dictionary NOTE: Applicable only for PAdES revocation sourceOCSPRefgetOCSPRefByDigest(Digest digest)Returns a containedOCSPRefwith the givendigestMap<OCSPResponseBinary,OCSPToken>getOCSPTokenMap()List<OCSPRef>getOrphanOCSPRefs()Returns a list of orphan CRL RefsList<OCSPRef>getReferencesForOCSPIdentifier(OCSPResponseBinary ocspResponse)Returns a list ofOCSPRefs assigned to the givenocspResponseList<OCSPToken>getRevocationValuesTokens()Retrieves the list of allRevocationTokens present in 'RevocationValues' element NOTE: Applicable only for CAdES and XAdES revocation sourcesList<OCSPRef>getTimestampRevocationRefs()List<OCSPToken>getTimestampRevocationValuesTokens()Retrieves the list of allRevocationTokens present in the Timestamp NOTE: Applicable only for CAdES revocation sourceList<OCSPToken>getTimestampValidationDataTokens()Retrieves the list of allRevocationTokens present in 'TimestampValidationData' element NOTE: Applicable only for XAdES revocation sourceList<OCSPToken>getVRIDictionaryTokens()Retrieves the list of allRevocationTokens present in 'VRI' dictionary NOTE: Applicable only for PAdES revocation sourcevoidpopulateOCSPRevocationTokenLists(SignatureOCSPSource signatureOCSPSource)Allows to fill all OCSP missing revocation tokens from the givenSignatureOCSPSourceprotected voidstoreOCSPToken(OCSPResponseBinary ocspResponse, OCSPToken ocspToken)-
Methods inherited from class eu.europa.esig.dss.spi.x509.revocation.ocsp.OfflineOCSPSource
addOCSPResponse, appendContainedOCSPResponses, getIdentifier, getIdentifier, getOCSPResponsesList, getRevocationOrigins, getRevocationToken, isEmpty
-
-
-
-
Method Detail
-
getRevocationValuesTokens
public List<OCSPToken> 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<OCSPToken>- Returns:
- list of
RevocationTokens
-
getAttributeRevocationValuesTokens
public List<OCSPToken> 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<OCSPToken>- Returns:
- list of
RevocationTokens
-
getTimestampValidationDataTokens
public List<OCSPToken> 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<OCSPToken>- Returns:
- list of
RevocationTokens
-
getDSSDictionaryTokens
public List<OCSPToken> 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<OCSPToken>- Returns:
- list of
RevocationTokens
-
getVRIDictionaryTokens
public List<OCSPToken> 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<OCSPToken>- Returns:
- list of
RevocationTokens
-
getTimestampRevocationValuesTokens
public List<OCSPToken> 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<OCSPToken>- Returns:
- list of
RevocationTokens
-
getAllOCSPTokens
public List<OCSPToken> getAllOCSPTokens()
Retrieves all found OCSP Tokens- Returns:
- list of
OCSPTokens
-
getAllOCSPReferences
public List<OCSPRef> getAllOCSPReferences()
Retrieves all found OCSP Refs- Returns:
- list of
OCSPRefs
-
getOCSPTokenMap
public Map<OCSPResponseBinary,OCSPToken> getOCSPTokenMap()
-
populateOCSPRevocationTokenLists
public void populateOCSPRevocationTokenLists(SignatureOCSPSource signatureOCSPSource)
Allows to fill all OCSP missing revocation tokens from the givenSignatureOCSPSource- Parameters:
signatureOCSPSource-SignatureOCSPSourceto populate values from
-
storeOCSPToken
protected void storeOCSPToken(OCSPResponseBinary ocspResponse, OCSPToken ocspToken)
- Overrides:
storeOCSPTokenin classOfflineOCSPSource
-
addReference
protected void addReference(OCSPRef ocspRef)
-
addReference
protected void addReference(OCSPRef ocspRef, RevocationRefOrigin origin)
-
getReferencesForOCSPIdentifier
public List<OCSPRef> getReferencesForOCSPIdentifier(OCSPResponseBinary ocspResponse)
Returns a list ofOCSPRefs assigned to the givenocspResponse- Parameters:
ocspResponse-OCSPResponseBinaryto get references for- Returns:
- list of
OCSPRefs
-
getOCSPRefByDigest
public OCSPRef getOCSPRefByDigest(Digest digest)
Returns a containedOCSPRefwith the givendigest
-
getOrphanOCSPRefs
public List<OCSPRef> getOrphanOCSPRefs()
Returns a list of orphan CRL Refs- Returns:
- list of
CRLRefs
-
findTokensFromRefs
public List<OCSPToken> findTokensFromRefs(List<OCSPRef> revocationRefs)
Retrieves a list of found OCSP Tokens for the givenrevocationRefs
-
-