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.CMSSignedData
cmsSignedData
protected org.bouncycastle.asn1.cms.AttributeTable
unsignedAttributes
-
Constructor Summary
Constructors Modifier Constructor Description protected
CMSOCSPSource(org.bouncycastle.cms.CMSSignedData cms, org.bouncycastle.asn1.cms.AttributeTable unsignedAttributes)
The default constructor for CAdESOCSPSource. -
Method Summary
Modifier and Type Method Description protected OCSPResponseBinary
addBasicOcspResp(org.bouncycastle.cert.ocsp.BasicOCSPResp basicOCSPResp, RevocationOrigin origin)
Builds and returnsOCSPResponseBinary
from the providedbasicOCSPResp
void
appendContainedOCSPResponses()
Retrieves the map ofBasicOCSPResp
/RevocationOrigin
contained in the source and appends result entries toocspResponses
.protected RevocationRefOrigin
getAttributeRevocationRefsOrigin()
Returns attribute-revocation-refsRevocationRefOrigin
protected RevocationOrigin
getCMSSignedDataRevocationOrigin()
Returns SignedDataRevocationOrigin
protected RevocationRefOrigin
getCompleteRevocationRefsOrigin()
Returns complete-revocation-refsRevocationRefOrigin
protected RevocationOrigin
getRevocationValuesOrigin()
Returns revocation-valuesRevocationOrigin
List<OCSPResponseBinary>
getSignedDataOCSPIdentifiers()
Returns a list ofOCSPResponseIdentifier
found 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, storeOCSPToken
Methods 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
-CMSSignedData
unsignedAttributes
-AttributeTable
unsignedAttributes
-
-
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 ofOCSPResponseIdentifier
found in the SignedData container- Returns:
- list of
OCSPResponseBinary
-
appendContainedOCSPResponses
public void appendContainedOCSPResponses()Description copied from class:OfflineOCSPSource
Retrieves the map ofBasicOCSPResp
/RevocationOrigin
contained in the source and appends result entries toocspResponses
.- Specified by:
appendContainedOCSPResponses
in classOfflineOCSPSource
-
addBasicOcspResp
protected OCSPResponseBinary addBasicOcspResp(org.bouncycastle.cert.ocsp.BasicOCSPResp basicOCSPResp, RevocationOrigin origin)Builds and returnsOCSPResponseBinary
from the providedbasicOCSPResp
- Parameters:
basicOCSPResp
-BasicOCSPResp
to build identifier fromorigin
-RevocationOrigin
specifing the list to store the value- Returns:
OCSPResponseBinary
-