2016-09-02 12:01:33 +02:00
|
|
|
// Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
|
2015-02-11 19:15:04 +01:00
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
#ifndef CEF_LIBCEF_BROWSER_X509_CERT_PRINCIPAL_IMPL_H_
|
|
|
|
#define CEF_LIBCEF_BROWSER_X509_CERT_PRINCIPAL_IMPL_H_
|
2015-02-11 19:15:04 +01:00
|
|
|
#pragma once
|
|
|
|
|
2024-04-30 17:45:07 +02:00
|
|
|
#include "cef/include/cef_x509_certificate.h"
|
2015-02-11 19:15:04 +01:00
|
|
|
#include "net/cert/x509_cert_types.h"
|
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
// CefX509CertPrincipal implementation
|
|
|
|
class CefX509CertPrincipalImpl : public CefX509CertPrincipal {
|
2015-02-11 19:15:04 +01:00
|
|
|
public:
|
2016-09-02 12:01:33 +02:00
|
|
|
explicit CefX509CertPrincipalImpl(const net::CertPrincipal& value);
|
2015-02-11 19:15:04 +01:00
|
|
|
|
2021-12-06 21:40:25 +01:00
|
|
|
CefX509CertPrincipalImpl(const CefX509CertPrincipalImpl&) = delete;
|
|
|
|
CefX509CertPrincipalImpl& operator=(const CefX509CertPrincipalImpl&) = delete;
|
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
// CefX509CertPrincipal methods.
|
2015-02-11 19:15:04 +01:00
|
|
|
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_;
|
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
IMPLEMENT_REFCOUNTING(CefX509CertPrincipalImpl);
|
2015-02-11 19:15:04 +01:00
|
|
|
};
|
|
|
|
|
2016-09-02 12:01:33 +02:00
|
|
|
#endif // CEF_LIBCEF_BROWSER_X509_CERT_PRINCIPAL_IMPL_H_
|