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,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, 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<OCSPToken>getADBERevocationValuesTokens()Retrieves the list of allRevocationTokens present in the ADBE element NOTE: Applicable only for PAdES revocation sourceList<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<OCSPToken>getCMSSignedDataRevocationTokens()Retrieves the list of allRevocationTokens present in the CMS SignedData NOTE: Applicable only for CAdES revocation sourcesList<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 givendigestList<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>getTimestampSignedDataRevocationTokens()Retrieves the list of allRevocationTokens present in the SignedData of a Timestamp Token NOTE: Applicable only for CAdES revocation sourcesList<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 sourceprotected 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
-
Constructor Details
-
SignatureOCSPSource
public SignatureOCSPSource()
-
-
Method Details
-
getCMSSignedDataRevocationTokens
Description copied from interface:SignatureRevocationSourceRetrieves the list of allRevocationTokens present in the CMS SignedData NOTE: Applicable only for CAdES revocation sources- Specified by:
getCMSSignedDataRevocationTokensin interfaceSignatureRevocationSource<OCSPToken>- Returns:
- list of
RevocationTokens
-
getTimestampSignedDataRevocationTokens
Description copied from interface:SignatureRevocationSourceRetrieves the list of allRevocationTokens present in the SignedData of a Timestamp Token NOTE: Applicable only for CAdES revocation sources- Specified by:
getTimestampSignedDataRevocationTokensin interfaceSignatureRevocationSource<OCSPToken>- Returns:
- list of
RevocationTokens
-
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
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
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
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
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
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
-
getADBERevocationValuesTokens
Description copied from interface:SignatureRevocationSourceRetrieves the list of allRevocationTokens present in the ADBE element NOTE: Applicable only for PAdES revocation source- Specified by:
getADBERevocationValuesTokensin interfaceSignatureRevocationSource<OCSPToken>- Returns:
- list of
RevocationTokens
-
getCompleteRevocationRefs
-
getAttributeRevocationRefs
-
getTimestampRevocationRefs
-
getAllOCSPTokens
Retrieves all found OCSP Tokens- Returns:
- list of
OCSPTokens
-
getAllOCSPReferences
Retrieves all found OCSP Refs- Returns:
- list of
OCSPRefs
-
storeOCSPToken
- Overrides:
storeOCSPTokenin classOfflineOCSPSource
-
addReference
-
getReferencesForOCSPIdentifier
Returns a list ofOCSPRefs assigned to the givenocspResponse- Parameters:
ocspResponse-OCSPResponseBinaryto get references for- Returns:
- list of
OCSPRefs
-
getOCSPRefByDigest
Returns a containedOCSPRefwith the givendigest -
getOrphanOCSPRefs
Returns a list of orphan CRL Refs- Returns:
- list of
CRLRefs
-
findTokensFromRefs
Retrieves a list of found OCSP Tokens for the givenrevocationRefs -
findRefsForRevocationToken
Retrieves a set of found OCSP Refs for the givenrevocationToken
-