1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
12 #include <sal/types.h>
14 #include <com/sun/star/uno/Sequence.hxx>
20 enum class SignatureMethodAlgorithm
;
26 /// Extension of css::security::XCertificate for module-internal purposes.
27 class SAL_NO_VTABLE SAL_DLLPUBLIC_RTTI
SAL_LOPLUGIN_ANNOTATE("crosscast") Certificate
30 /// Returns the SHA-256 thumbprint.
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;
39 ~Certificate() noexcept
= default;
43 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */