SignedDatapublic class SignedData extends Object As defined in PKCS #7: Cryptographic Message Syntax Standard
(http://www.ietf.org/rfc/rfc2315.txt)
SignedData ::= SEQUENCE {
version Version,
digestAlgorithms DigestAlgorithmIdentifiers,
contentInfo ContentInfo,
certificates
[0] IMPLICIT ExtendedCertificatesAndCertificates OPTIONAL,
crls
[1] IMPLICIT CertificateRevocationLists OPTIONAL,
signerInfos SignerInfos } |
Fields Summary |
---|
private int | version | private List | digestAlgorithms | private ContentInfo | contentInfo | private List | certificates | private List | crls | private List | signerInfos | public static final org.apache.harmony.security.asn1.ASN1Sequence | ASN1 |
Constructors Summary |
---|
public SignedData(int version, List digestAlgorithms, ContentInfo contentInfo, List certificates, List crls, List signerInfos)
this.version = version;
this.digestAlgorithms = digestAlgorithms;
this.contentInfo = contentInfo;
this.certificates = certificates;
this.crls = crls;
this.signerInfos = signerInfos;
|
Methods Summary |
---|
public java.util.List | getCRLs()
return crls;
| public java.util.List | getCertificates()
return certificates;
| public ContentInfo | getContentInfo()
return contentInfo;
| public java.util.List | getDigestAlgorithms()
return digestAlgorithms;
| public java.util.List | getSignerInfos()
return signerInfos;
| public int | getVersion()
return version;
| public java.lang.String | toString()
StringBuffer res = new StringBuffer();
res.append("---- SignedData:"); //$NON-NLS-1$
res.append("\nversion: "); //$NON-NLS-1$
res.append(version);
res.append("\ndigestAlgorithms: "); //$NON-NLS-1$
res.append(digestAlgorithms.toString());
res.append("\ncontentInfo: "); //$NON-NLS-1$
res.append(contentInfo.toString());
res.append("\ncertificates: "); //$NON-NLS-1$
if (certificates != null) {
res.append(certificates.toString());
}
res.append("\ncrls: "); //$NON-NLS-1$
if (crls != null) {
res.append(crls.toString());
}
res.append("\nsignerInfos:\n"); //$NON-NLS-1$
res.append(signerInfos.toString());
res.append("\n---- SignedData End\n]"); //$NON-NLS-1$
return res.toString();
|
|