security/manager/ssl/public/nsICMSMessage.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/manager/ssl/public/nsICMSMessage.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,35 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#include "nsISupports.idl"
    1.10 +
    1.11 +%{ C++
    1.12 +#define NS_CMSMESSAGE_CONTRACTID "@mozilla.org/nsCMSMessage;1"
    1.13 +%}
    1.14 +
    1.15 +[ptr] native UnsignedCharPtr(unsigned char);
    1.16 +
    1.17 +interface nsIX509Cert;
    1.18 +interface nsIArray;
    1.19 +
    1.20 +/**
    1.21 + * nsICMSMessage
    1.22 + *  Interface to a CMS Message
    1.23 + */
    1.24 +[uuid(a4557478-ae16-11d5-ba4b-00108303b117)]
    1.25 +interface nsICMSMessage : nsISupports
    1.26 +{
    1.27 +  void contentIsSigned(out boolean aSigned);
    1.28 +  void contentIsEncrypted(out boolean aEncrypted);
    1.29 +  void getSignerCommonName(out string aName);
    1.30 +  void getSignerEmailAddress(out string aEmail);
    1.31 +  void getSignerCert(out nsIX509Cert scert);
    1.32 +  void getEncryptionCert(out nsIX509Cert ecert);
    1.33 +  void verifySignature();
    1.34 +  void verifyDetachedSignature(in UnsignedCharPtr aDigestData, in unsigned long aDigestDataLen);
    1.35 +  void CreateEncrypted(in nsIArray aRecipientCerts);
    1.36 +  void CreateSigned(in nsIX509Cert scert, in nsIX509Cert ecert, in UnsignedCharPtr aDigestData, in unsigned long aDigestDataLen);
    1.37 +};
    1.38 +

mercurial