/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIContentSignatureVerifier.idl
 */

#ifndef __gen_nsIContentSignatureVerifier_h__
#define __gen_nsIContentSignatureVerifier_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif

/* starting interface:    nsIContentSignatureVerifier */
#define NS_ICONTENTSIGNATUREVERIFIER_IID_STR "45a5fe2f-c350-4b86-962d-02d5aaaa955a"

#define NS_ICONTENTSIGNATUREVERIFIER_IID \
  {0x45a5fe2f, 0xc350, 0x4b86, \
    { 0x96, 0x2d, 0x02, 0xd5, 0xaa, 0xaa, 0x95, 0x5a }}

class NS_NO_VTABLE nsIContentSignatureVerifier : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTSIGNATUREVERIFIER_IID)

  /* boolean verifyContentSignature (in ACString aData, in ACString aSignature, in ACString aCertificateChain, in ACString aName); */
  NS_IMETHOD VerifyContentSignature(const nsACString & aData, const nsACString & aSignature, const nsACString & aCertificateChain, const nsACString & aName, bool *_retval) = 0;

  /* void createContext (in ACString aData, in ACString aSignature, in ACString aCertificateChain, in ACString aName); */
  NS_IMETHOD CreateContext(const nsACString & aData, const nsACString & aSignature, const nsACString & aCertificateChain, const nsACString & aName) = 0;

  /* void update (in ACString aData); */
  NS_IMETHOD Update(const nsACString & aData) = 0;

  /* boolean end (); */
  NS_IMETHOD End(bool *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentSignatureVerifier, NS_ICONTENTSIGNATUREVERIFIER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICONTENTSIGNATUREVERIFIER \
  NS_IMETHOD VerifyContentSignature(const nsACString & aData, const nsACString & aSignature, const nsACString & aCertificateChain, const nsACString & aName, bool *_retval) override; \
  NS_IMETHOD CreateContext(const nsACString & aData, const nsACString & aSignature, const nsACString & aCertificateChain, const nsACString & aName) override; \
  NS_IMETHOD Update(const nsACString & aData) override; \
  NS_IMETHOD End(bool *_retval) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSICONTENTSIGNATUREVERIFIER \
  NS_METHOD VerifyContentSignature(const nsACString & aData, const nsACString & aSignature, const nsACString & aCertificateChain, const nsACString & aName, bool *_retval); \
  NS_METHOD CreateContext(const nsACString & aData, const nsACString & aSignature, const nsACString & aCertificateChain, const nsACString & aName); \
  NS_METHOD Update(const nsACString & aData); \
  NS_METHOD End(bool *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICONTENTSIGNATUREVERIFIER(_to) \
  NS_IMETHOD VerifyContentSignature(const nsACString & aData, const nsACString & aSignature, const nsACString & aCertificateChain, const nsACString & aName, bool *_retval) override { return _to VerifyContentSignature(aData, aSignature, aCertificateChain, aName, _retval); } \
  NS_IMETHOD CreateContext(const nsACString & aData, const nsACString & aSignature, const nsACString & aCertificateChain, const nsACString & aName) override { return _to CreateContext(aData, aSignature, aCertificateChain, aName); } \
  NS_IMETHOD Update(const nsACString & aData) override { return _to Update(aData); } \
  NS_IMETHOD End(bool *_retval) override { return _to End(_retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICONTENTSIGNATUREVERIFIER(_to) \
  NS_IMETHOD VerifyContentSignature(const nsACString & aData, const nsACString & aSignature, const nsACString & aCertificateChain, const nsACString & aName, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->VerifyContentSignature(aData, aSignature, aCertificateChain, aName, _retval); } \
  NS_IMETHOD CreateContext(const nsACString & aData, const nsACString & aSignature, const nsACString & aCertificateChain, const nsACString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateContext(aData, aSignature, aCertificateChain, aName); } \
  NS_IMETHOD Update(const nsACString & aData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Update(aData); } \
  NS_IMETHOD End(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->End(_retval); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsContentSignatureVerifier : public nsIContentSignatureVerifier
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSICONTENTSIGNATUREVERIFIER

  nsContentSignatureVerifier();

private:
  ~nsContentSignatureVerifier();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsContentSignatureVerifier, nsIContentSignatureVerifier)

nsContentSignatureVerifier::nsContentSignatureVerifier()
{
  /* member initializers and constructor code */
}

nsContentSignatureVerifier::~nsContentSignatureVerifier()
{
  /* destructor code */
}

/* boolean verifyContentSignature (in ACString aData, in ACString aSignature, in ACString aCertificateChain, in ACString aName); */
NS_IMETHODIMP nsContentSignatureVerifier::VerifyContentSignature(const nsACString & aData, const nsACString & aSignature, const nsACString & aCertificateChain, const nsACString & aName, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void createContext (in ACString aData, in ACString aSignature, in ACString aCertificateChain, in ACString aName); */
NS_IMETHODIMP nsContentSignatureVerifier::CreateContext(const nsACString & aData, const nsACString & aSignature, const nsACString & aCertificateChain, const nsACString & aName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void update (in ACString aData); */
NS_IMETHODIMP nsContentSignatureVerifier::Update(const nsACString & aData)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean end (); */
NS_IMETHODIMP nsContentSignatureVerifier::End(bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


#endif /* __gen_nsIContentSignatureVerifier_h__ */
