Package eu.europa.esig.dss.validation
Class CMSOCSPSource
- java.lang.Object
-
- eu.europa.esig.dss.spi.x509.revocation.ocsp.OfflineOCSPSource
-
- eu.europa.esig.dss.validation.SignatureOCSPSource
-
- eu.europa.esig.dss.validation.CMSOCSPSource
-
- All Implemented Interfaces:
OCSPSource,RevocationSource<OCSPToken>,SignatureRevocationSource<OCSPToken>,Serializable
- Direct Known Subclasses:
CAdESOCSPSource,TimestampOCSPSource
public abstract class CMSOCSPSource extends SignatureOCSPSource
OCSPSource that retrieves information from aCMSSignedDatacontainer.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected org.bouncycastle.cms.CMSSignedDatacmsSignedDataprotected org.bouncycastle.asn1.cms.AttributeTableunsignedAttributes
-
Constructor Summary
Constructors Modifier Constructor Description protectedCMSOCSPSource(org.bouncycastle.cms.CMSSignedData cms, org.bouncycastle.asn1.cms.AttributeTable unsignedAttributes)The default constructor for CAdESOCSPSource.
-
Method Summary
Modifier and Type Method Description protected OCSPResponseBinaryaddBasicOcspResp(org.bouncycastle.cert.ocsp.BasicOCSPResp basicOCSPResp, RevocationOrigin origin)Builds and returnsOCSPResponseBinaryfrom the providedbasicOCSPRespvoidappendContainedOCSPResponses()Retrieves the map ofBasicOCSPResp/RevocationOrigincontained in the source and appends result entries toocspResponses.protected RevocationRefOrigingetAttributeRevocationRefsOrigin()Returns attribute-revocation-refsRevocationRefOriginprotected RevocationRefOrigingetCompleteRevocationRefsOrigin()Returns complete-revocation-refsRevocationRefOriginprotected RevocationOrigingetRevocationValuesOrigin()Returns revocation-valuesRevocationOriginList<OCSPResponseBinary>getSignedDataOCSPIdentifiers()Returns a list ofOCSPResponseIdentifierfound in the SignedData container-
Methods inherited from class eu.europa.esig.dss.validation.SignatureOCSPSource
addReference, addReference, findRefsForRevocationToken, findTokensFromRefs, getAllOCSPReferences, getAllOCSPTokens, getAttributeRevocationRefs, getAttributeRevocationValuesTokens, getCompleteRevocationRefs, getDSSDictionaryTokens, getOCSPRefByDigest, getOCSPTokenMap, getOrphanOCSPRefs, getReferencesForOCSPIdentifier, getRevocationValuesTokens, getTimestampRevocationRefs, getTimestampRevocationValuesTokens, getTimestampValidationDataTokens, getVRIDictionaryTokens, populateOCSPRevocationTokenLists, storeOCSPToken
-
Methods inherited from class eu.europa.esig.dss.spi.x509.revocation.ocsp.OfflineOCSPSource
addOCSPResponse, getIdentifier, getIdentifier, getOCSPResponsesList, getRevocationOrigins, getRevocationToken, isEmpty
-
-
-
-
Method Detail
-
getRevocationValuesOrigin
protected RevocationOrigin getRevocationValuesOrigin()
Returns revocation-valuesRevocationOrigin- Returns:
RevocationOrigin
-
getCompleteRevocationRefsOrigin
protected RevocationRefOrigin getCompleteRevocationRefsOrigin()
Returns complete-revocation-refsRevocationRefOrigin- Returns:
RevocationRefOrigin
-
getAttributeRevocationRefsOrigin
protected RevocationRefOrigin getAttributeRevocationRefsOrigin()
Returns attribute-revocation-refsRevocationRefOrigin- Returns:
RevocationRefOrigin
-
getSignedDataOCSPIdentifiers
public List<OCSPResponseBinary> getSignedDataOCSPIdentifiers()
Returns a list ofOCSPResponseIdentifierfound in the SignedData container- Returns:
- list of
OCSPResponseBinary
-
appendContainedOCSPResponses
public void appendContainedOCSPResponses()
Description copied from class:OfflineOCSPSourceRetrieves the map ofBasicOCSPResp/RevocationOrigincontained in the source and appends result entries toocspResponses.- Specified by:
appendContainedOCSPResponsesin classOfflineOCSPSource
-
addBasicOcspResp
protected OCSPResponseBinary addBasicOcspResp(org.bouncycastle.cert.ocsp.BasicOCSPResp basicOCSPResp, RevocationOrigin origin)
Builds and returnsOCSPResponseBinaryfrom the providedbasicOCSPResp- Parameters:
basicOCSPResp-BasicOCSPRespto build identifier fromorigin-RevocationOriginspecifing the list to store the value- Returns:
OCSPResponseBinary
-
-