FileDocCategorySizeDatePackage
SignedData.javaAPI DocAndroid 1.5 API5355Wed May 06 22:41:06 BST 2009org.apache.harmony.security.pkcs7

SignedData

public 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.ListgetCRLs()

        return crls;
    
public java.util.ListgetCertificates()

        return certificates;
    
public ContentInfogetContentInfo()

return
Returns the contentInfo.

        return contentInfo;
    
public java.util.ListgetDigestAlgorithms()

return
Returns the digestAlgorithms.

        return digestAlgorithms;
    
public java.util.ListgetSignerInfos()

        return signerInfos;
    
public intgetVersion()

return
Returns the version.

        return version;
    
public java.lang.StringtoString()

        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();