Package eu.europa.esig.dss.cms
Interface CMS
- All Known Implementing Classes:
CMSSignedDataObject,CMSSignedDataStream
public interface CMS
Represents a content of a CMS Signed Data object
-
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.util.Store<org.bouncycastle.cert.X509AttributeCertificateHolder> Gets attribute certificates incorporates within CMSorg.bouncycastle.util.Store<org.bouncycastle.cert.X509CertificateHolder> Gets the certificates store, representing the value of SignedData.certificates fieldorg.bouncycastle.util.Store<org.bouncycastle.cert.X509CRLHolder> getCRLs()Gets the CRLs store (OCSP excluded), representing the value of SignedData.crls fieldbyte[]Gets DER-encoded content of the CMS SignedData.Set<org.bouncycastle.asn1.x509.AlgorithmIdentifier> Returns a set of algorithm identifiers (OIDs) incorporated within SignedData.digestAlgorithms field of CMSbyte[]Gets encoded content of the CMS SignedData, keeping the original encoding.org.bouncycastle.util.Store<?> Gets the OCSP Basic Store, incorporated within the SignedData.crls fieldorg.bouncycastle.util.Store<?> Gets the OCSP Responses Store, incorporated within the SignedData.crls fieldGets the signed content incorporated within the SignedData.encapContentInfo.eContent fieldorg.bouncycastle.asn1.ASN1ObjectIdentifierGets signed content type, present within the SignedData.encapContentInfo.eContentType fieldorg.bouncycastle.cms.SignerInformationStoreGets the signers of the signature, incorporated within the SignedData.signerInfos fieldintReturns value of SignedData.version fieldbooleanReturns whether the signature is detached (i.e.
-
Method Details
-
getVersion
int getVersion()Returns value of SignedData.version field- Returns:
- integer value
-
getDigestAlgorithmIDs
Set<org.bouncycastle.asn1.x509.AlgorithmIdentifier> getDigestAlgorithmIDs()Returns a set of algorithm identifiers (OIDs) incorporated within SignedData.digestAlgorithms field of CMS- Returns:
- a set of
AlgorithmIdentifiers
-
isDetachedSignature
boolean isDetachedSignature()Returns whether the signature is detached (i.e. SignedData.encapContentInfo.eContent is null)- Returns:
- whether the signature is detached
-
getSignedContentType
org.bouncycastle.asn1.ASN1ObjectIdentifier getSignedContentType()Gets signed content type, present within the SignedData.encapContentInfo.eContentType field- Returns:
ASN1ObjectIdentifier
-
getSignedContent
DSSDocument getSignedContent()Gets the signed content incorporated within the SignedData.encapContentInfo.eContent field- Returns:
DSSDocument
-
getCertificates
org.bouncycastle.util.Store<org.bouncycastle.cert.X509CertificateHolder> getCertificates()Gets the certificates store, representing the value of SignedData.certificates field- Returns:
Store
-
getAttributeCertificates
org.bouncycastle.util.Store<org.bouncycastle.cert.X509AttributeCertificateHolder> getAttributeCertificates()Gets attribute certificates incorporates within CMS- Returns:
Store
-
getCRLs
org.bouncycastle.util.Store<org.bouncycastle.cert.X509CRLHolder> getCRLs()Gets the CRLs store (OCSP excluded), representing the value of SignedData.crls field- Returns:
Store
-
getOcspResponseStore
org.bouncycastle.util.Store<?> getOcspResponseStore()Gets the OCSP Responses Store, incorporated within the SignedData.crls field- Returns:
Store
-
getOcspBasicStore
org.bouncycastle.util.Store<?> getOcspBasicStore()Gets the OCSP Basic Store, incorporated within the SignedData.crls field- Returns:
Store
-
getSignerInfos
org.bouncycastle.cms.SignerInformationStore getSignerInfos()Gets the signers of the signature, incorporated within the SignedData.signerInfos field- Returns:
SignerInformationStore
-
getDEREncoded
byte[] getDEREncoded()Gets DER-encoded content of the CMS SignedData. NOTE: This method returns the encoded value using in-memory byte array. Not applicable for large CMS processing.- Returns:
- DER-encoded binaries
-
getEncoded
byte[] getEncoded()Gets encoded content of the CMS SignedData, keeping the original encoding.- Returns:
- encoded binaries
-