Revert "tdf#110987: type detection, binary Office formats > templates"
[LibreOffice.git] / xmlsecurity / inc / certificate.hxx
blob61ad532fdd6bbd419b1540f6dec254707442ad85
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 #ifndef INCLUDED_XMLSECURITY_INC_CERTIFICATE_H
11 #define INCLUDED_XMLSECURITY_INC_CERTIFICATE_H
13 #include <sal/types.h>
15 #include <com/sun/star/uno/Sequence.hxx>
17 namespace svl
19 namespace crypto
21 enum class SignatureMethodAlgorithm;
25 namespace xmlsecurity
28 /// Extension of css::security::XCertificate for module-internal purposes.
29 class SAL_NO_VTABLE SAL_DLLPUBLIC_RTTI Certificate
31 public:
33 /// Returns the SHA-256 thumbprint.
34 ///
35 /// @throws css::uno::RuntimeException
36 virtual css::uno::Sequence<sal_Int8> getSHA256Thumbprint() = 0;
38 /// Same as getSubjectPublicKeyAlgorithm(), but returns an ID, not a string.
39 virtual svl::crypto::SignatureMethodAlgorithm getSignatureMethodAlgorithm() = 0;
41 protected:
42 ~Certificate() noexcept = default;
47 #endif // INCLUDED_XMLSECURITY_INC_CERTIFICATE_H
49 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */