A signed data object containing multitude of SignerInfos.
SignedData ::= SEQUENCE {
version CMSVersion,
digestAlgorithms DigestAlgorithmIdentifiers,
encapContentInfo EncapsulatedContentInfo,
certificates [0] IMPLICIT CertificateSet OPTIONAL,
crls [1] IMPLICIT CertificateRevocationLists OPTIONAL,
signerInfos SignerInfos
}
DigestAlgorithmIdentifiers ::= SET OF DigestAlgorithmIdentifier
SignerInfos ::= SET OF SignerInfo
The version calculation uses following ruleset from RFC 5652 section 5.1:
IF ((certificates is present) AND
(any certificates with a type of other are present)) OR
((crls is present) AND
(any crls with a type of other are present))
THEN version MUST be 5
ELSE
IF (certificates is present) AND
(any version 2 attribute certificates are present)
THEN version MUST be 4
ELSE
IF ((certificates is present) AND
(any version 1 attribute certificates are present)) OR
(any SignerInfo structures are version 3) OR
(encapContentInfo eContentType is other than id-data)
THEN version MUST be 3
ELSE version MUST be 1
| Modifier and Type | Field and Description |
|---|---|
| private ASN1Set | |
| private boolean | |
| private final ContentInfo | |
| private ASN1Set | |
| private boolean | |
| private final ASN1Set | |
| private final boolean | |
| private final ASN1Set | |
| private final boolean | |
| private final ASN1Integer | |
| private static final ASN1Integer | |
| private static final ASN1Integer | |
| private static final ASN1Integer | |
| private static final ASN1Integer |
| Access | Constructor and Description |
|---|---|
| public | SignedData(ASN1Set digestAlgorithms, ContentInfo contentInfo, ASN1Set certificates, ASN1Set crls, ASN1Set signerInfos)
|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private ASN1Integer | |
| private boolean | |
| public ASN1Set | |
| public ASN1Set | |
| public ASN1Set | |
| public ContentInfo | |
| public static SignedData | Returns: a reference that can be assigned to SignedData (may be null)the object we want converted. o)Return a SignedData object from the given object. |
| public ASN1Set | |
| public ASN1Integer | |
| public ASN1Primitive | toASN1Primitive()
Implements abstract org. Implements org. Produce an object suitable for an ASN1OutputStream. |
| certificates | back to summary |
|---|---|
| private ASN1Set certificates | |
| certsBer | back to summary |
|---|---|
| private boolean certsBer | |
| contentInfo | back to summary |
|---|---|
| private final ContentInfo contentInfo | |
| crls | back to summary |
|---|---|
| private ASN1Set crls | |
| crlsBer | back to summary |
|---|---|
| private boolean crlsBer | |
| digestAlgorithms | back to summary |
|---|---|
| private final ASN1Set digestAlgorithms | |
| digsBer | back to summary |
|---|---|
| private final boolean digsBer | |
| signerInfos | back to summary |
|---|---|
| private final ASN1Set signerInfos | |
| sigsBer | back to summary |
|---|---|
| private final boolean sigsBer | |
| version | back to summary |
|---|---|
| private final ASN1Integer version | |
| VERSION_1 | back to summary |
|---|---|
| private static final ASN1Integer VERSION_1 | |
| VERSION_3 | back to summary |
|---|---|
| private static final ASN1Integer VERSION_3 | |
| VERSION_4 | back to summary |
|---|---|
| private static final ASN1Integer VERSION_4 | |
| VERSION_5 | back to summary |
|---|---|
| private static final ASN1Integer VERSION_5 | |
| SignedData | back to summary |
|---|---|
| public SignedData(ASN1Set digestAlgorithms, ContentInfo contentInfo, ASN1Set certificates, ASN1Set crls, ASN1Set signerInfos) | |
| SignedData | back to summary |
|---|---|
| private SignedData(ASN1Sequence seq) | |
| calculateVersion | back to summary |
|---|---|
| private ASN1Integer calculateVersion(ASN1ObjectIdentifier contentOid, ASN1Set certs, ASN1Set crls, ASN1Set signerInfs) | |
| checkForVersion3 | back to summary |
|---|---|
| private boolean checkForVersion3(ASN1Set signerInfs) | |
| getCertificates | back to summary |
|---|---|
| public ASN1Set getCertificates() | |
| getCRLs | back to summary |
|---|---|
| public ASN1Set getCRLs() | |
| getDigestAlgorithms | back to summary |
|---|---|
| public ASN1Set getDigestAlgorithms() | |
| getEncapContentInfo | back to summary |
|---|---|
| public ContentInfo getEncapContentInfo() | |
| getInstance | back to summary |
|---|---|
| public static SignedData getInstance(Object o) Return a SignedData object from the given object. Accepted inputs:
| |
| getSignerInfos | back to summary |
|---|---|
| public ASN1Set getSignerInfos() | |
| getVersion | back to summary |
|---|---|
| public ASN1Integer getVersion() | |
| toASN1Primitive | back to summary |
|---|---|
| public ASN1Primitive toASN1Primitive() Implements abstract org. Implements org. Produce an object suitable for an ASN1OutputStream.
| |