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 a
CMSSignedData container.- 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 RevocationOrigingetCMSSignedDataRevocationOrigin()Returns SignedDataRevocationOriginprotected RevocationRefOrigingetCompleteRevocationRefsOrigin()Returns complete-revocation-refsRevocationRefOriginprotected RevocationOrigingetRevocationValuesOrigin()Returns revocation-valuesRevocationOriginList<OCSPResponseBinary>getSignedDataOCSPIdentifiers()Returns a list ofOCSPResponseIdentifierfound in the SignedData containerMethods inherited from class eu.europa.esig.dss.validation.SignatureOCSPSource
addReference, findRefsForRevocationToken, findTokensFromRefs, getADBERevocationValuesTokens, getAllOCSPReferences, getAllOCSPTokens, getAttributeRevocationRefs, getAttributeRevocationValuesTokens, getCMSSignedDataRevocationTokens, getCompleteRevocationRefs, getDSSDictionaryTokens, getOCSPRefByDigest, getOrphanOCSPRefs, getReferencesForOCSPIdentifier, getRevocationValuesTokens, getTimestampRevocationRefs, getTimestampRevocationValuesTokens, getTimestampSignedDataRevocationTokens, getTimestampValidationDataTokens, getVRIDictionaryTokens, storeOCSPTokenMethods inherited from class eu.europa.esig.dss.spi.x509.revocation.ocsp.OfflineOCSPSource
addOCSPResponse, getIdentifier, getIdentifier, getOCSPResponsesList, getRevocationOrigins, getRevocationToken, isEmpty
-
Field Details
-
cmsSignedData
protected final transient org.bouncycastle.cms.CMSSignedData cmsSignedData -
unsignedAttributes
protected final transient org.bouncycastle.asn1.cms.AttributeTable unsignedAttributes
-
-
Constructor Details
-
CMSOCSPSource
protected CMSOCSPSource(org.bouncycastle.cms.CMSSignedData cms, org.bouncycastle.asn1.cms.AttributeTable unsignedAttributes)The default constructor for CAdESOCSPSource.- Parameters:
cms-CMSSignedDataunsignedAttributes-AttributeTableunsignedAttributes
-
-
Method Details
-
getCMSSignedDataRevocationOrigin
Returns SignedDataRevocationOrigin- Returns:
RevocationOrigin
-
getRevocationValuesOrigin
Returns revocation-valuesRevocationOrigin- Returns:
RevocationOrigin
-
getCompleteRevocationRefsOrigin
Returns complete-revocation-refsRevocationRefOrigin- Returns:
RevocationRefOrigin
-
getAttributeRevocationRefsOrigin
Returns attribute-revocation-refsRevocationRefOrigin- Returns:
RevocationRefOrigin
-
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
-