blob: e131ade6c5b187a2dc84936f0f3cbad187e61d46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
// **********************************************************************
//
// Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
#ifndef ICESSL_UWP_H
#define ICESSL_UWP_H
#include <IceSSL/Plugin.h>
namespace IceSSL
{
namespace UWP
{
class Certificate;
ICE_DEFINE_PTR(CertificatePtr, Certificate);
class ICESSL_API Certificate : public virtual IceSSL::Certificate
{
public:
//
// Construct a certificate using a native certificate.
//
static CertificatePtr create(Windows::Security::Cryptography::Certificates::Certificate^);
//
// Load the certificate from a file. The certificate must use the
// PEM encoding format. Raises CertificateReadException if the
// file cannot be read.
//
static CertificatePtr load(const std::string&);
//
// Decode a certificate from a string that uses the PEM encoding
// format. Raises CertificateEncodingException if an error
// occurs.
//
static CertificatePtr decode(const std::string&);
//
// Retrieve the native X509 certificate value wrapped by this
// object.
//
virtual Windows::Security::Cryptography::Certificates::Certificate^ getCert() const = 0;
};
} // UWP namespace end
} // IceSSL namespace end
#endif
|