tdf#157086 invert the blur mask instead of the alpha mask
[LibreOffice.git] / xmlsecurity / inc / certificate.hxx
blob8357f50651a1ae699877d13351498cdf41f00580
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #pragma once
12 #include <sal/types.h>
14 #include <com/sun/star/uno/Sequence.hxx>
16 namespace svl
18 namespace crypto
20 enum class SignatureMethodAlgorithm;
24 namespace xmlsecurity
26 /// Extension of css::security::XCertificate for module-internal purposes.
27 class SAL_NO_VTABLE SAL_DLLPUBLIC_RTTI SAL_LOPLUGIN_ANNOTATE("crosscast") Certificate
29 public:
30 /// Returns the SHA-256 thumbprint.
31 ///
32 /// @throws css::uno::RuntimeException
33 virtual css::uno::Sequence<sal_Int8> getSHA256Thumbprint() = 0;
35 /// Same as getSubjectPublicKeyAlgorithm(), but returns an ID, not a string.
36 virtual svl::crypto::SignatureMethodAlgorithm getSignatureMethodAlgorithm() = 0;
38 protected:
39 ~Certificate() noexcept = default;
43 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */