Package eu.europa.esig.dss.validation
Class CMSCRLSource
java.lang.Object
eu.europa.esig.dss.spi.x509.revocation.crl.OfflineCRLSource
eu.europa.esig.dss.validation.SignatureCRLSource
eu.europa.esig.dss.validation.CMSCRLSource
- All Implemented Interfaces:
CRLSource
,RevocationSource<CRLToken>
,SignatureRevocationSource<CRLToken>
,Serializable
- Direct Known Subclasses:
CAdESCRLSource
,TimestampCRLSource
public abstract class CMSCRLSource extends SignatureCRLSource
CRLSource 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 Constructor Description CMSCRLSource(org.bouncycastle.cms.CMSSignedData cmsSignedData, org.bouncycastle.asn1.cms.AttributeTable unsignedAttributes)
The default constructor for CMSCRLSource. -
Method Summary
Modifier and Type Method Description protected CRLBinary
addX509CRLHolder(org.bouncycastle.cert.X509CRLHolder crlHolder, RevocationOrigin origin)
Computes and storeCRLBinary
fromcrlHolder
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<CRLBinary>
getSignedDataCRLIdentifiers()
Returns a list ofCRLBinaryIdentifier
found in the SignedData containerMethods inherited from class eu.europa.esig.dss.validation.SignatureCRLSource
addReference, findRefsForRevocationToken, findTokensFromRefs, getADBERevocationValuesTokens, getAllCRLReferences, getAllCRLTokens, getAttributeRevocationRefs, getAttributeRevocationValuesTokens, getCMSSignedDataRevocationTokens, getCompleteRevocationRefs, getCRLRefByDigest, getDSSDictionaryTokens, getOrphanCrlRefs, getReferencesForCRLIdentifier, getRevocationValuesTokens, getTimestampRevocationRefs, getTimestampRevocationValuesTokens, getTimestampSignedDataRevocationTokens, getTimestampValidationDataTokens, getVRIDictionaryTokens, storeCRLToken
Methods inherited from class eu.europa.esig.dss.spi.x509.revocation.crl.OfflineCRLSource
addCRLBinary, addCRLBinary, getCRLBinaryList, getIdentifier, getIdentifier, 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
-
CMSCRLSource
public CMSCRLSource(org.bouncycastle.cms.CMSSignedData cmsSignedData, org.bouncycastle.asn1.cms.AttributeTable unsignedAttributes)The default constructor for CMSCRLSource.- Parameters:
cmsSignedData
-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
-
getSignedDataCRLIdentifiers
Returns a list ofCRLBinaryIdentifier
found in the SignedData container- Returns:
- list of
CRLBinary
-
addX509CRLHolder
protected CRLBinary addX509CRLHolder(org.bouncycastle.cert.X509CRLHolder crlHolder, RevocationOrigin origin)Computes and storeCRLBinary
fromcrlHolder
- Parameters:
crlHolder
-X509CRLHolder
to compute values fromorigin
-RevocationOrigin
indicating the list where to save the object- Returns:
CRLBinary
-