michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef __NS_CERTIFICATEPRINCIPAL_H michael@0: #define __NS_CERTIFICATEPRINCIPAL_H michael@0: michael@0: #include "nsICertificatePrincipal.h" michael@0: #include "nsString.h" michael@0: #include "nsCOMPtr.h" michael@0: michael@0: class nsCertificatePrincipal : public nsICertificatePrincipal michael@0: { michael@0: public: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSICERTIFICATEPRINCIPAL michael@0: michael@0: nsCertificatePrincipal(const nsACString& aFingerprint, michael@0: const nsACString& aSubjectName, michael@0: const nsACString& aPrettyName, michael@0: nsISupports* aCert) michael@0: : mFingerprint(aFingerprint) michael@0: , mSubjectName(aSubjectName) michael@0: , mPrettyName(aPrettyName) michael@0: , mCert(aCert) michael@0: {} michael@0: michael@0: virtual ~nsCertificatePrincipal() {} michael@0: michael@0: private: michael@0: nsCString mFingerprint; michael@0: nsCString mSubjectName; michael@0: nsCString mPrettyName; michael@0: nsCOMPtr mCert; michael@0: }; michael@0: michael@0: #endif /* __NS_CERTIFICATEPRINCIPAL_H */