mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-11 17:15:57 +01:00
695ee2a041
- Mac: 13.3 SDK (Xcode 14.3) is now required
37 lines
1.2 KiB
C++
37 lines
1.2 KiB
C++
// Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
// can be found in the LICENSE file.
|
|
|
|
#ifndef CEF_LIBCEF_BROWSER_X509_CERT_PRINCIPAL_IMPL_H_
|
|
#define CEF_LIBCEF_BROWSER_X509_CERT_PRINCIPAL_IMPL_H_
|
|
#pragma once
|
|
|
|
#include "include/cef_x509_certificate.h"
|
|
|
|
#include "net/cert/x509_cert_types.h"
|
|
|
|
// CefX509CertPrincipal implementation
|
|
class CefX509CertPrincipalImpl : public CefX509CertPrincipal {
|
|
public:
|
|
explicit CefX509CertPrincipalImpl(const net::CertPrincipal& value);
|
|
|
|
CefX509CertPrincipalImpl(const CefX509CertPrincipalImpl&) = delete;
|
|
CefX509CertPrincipalImpl& operator=(const CefX509CertPrincipalImpl&) = delete;
|
|
|
|
// CefX509CertPrincipal methods.
|
|
CefString GetDisplayName() override;
|
|
CefString GetCommonName() override;
|
|
CefString GetLocalityName() override;
|
|
CefString GetStateOrProvinceName() override;
|
|
CefString GetCountryName() override;
|
|
void GetOrganizationNames(std::vector<CefString>& names) override;
|
|
void GetOrganizationUnitNames(std::vector<CefString>& names) override;
|
|
|
|
private:
|
|
net::CertPrincipal value_;
|
|
|
|
IMPLEMENT_REFCOUNTING(CefX509CertPrincipalImpl);
|
|
};
|
|
|
|
#endif // CEF_LIBCEF_BROWSER_X509_CERT_PRINCIPAL_IMPL_H_
|