Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
AudioContentJwtVerifier.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/audio/online_streaming/IAudioContentVerifier.h"
7#include "mc/deps/audio/online_streaming/SignedAudioContentSectionType.h"
8#include "mc/platform/Result.h"
9
10// auto generated forward declare list
11// clang-format off
12class WebKey;
13namespace Audio { class SignedAudioContent; }
14namespace Audio { class VerifiedAudioContent; }
15// clang-format on
16
17class AudioContentJwtVerifier : public ::Audio::IAudioContentVerifier {
18public:
19 // member variables
20 // NOLINTBEGIN
23 // NOLINTEND
24
25public:
26 // prevent constructor by default
27 AudioContentJwtVerifier& operator=(AudioContentJwtVerifier const&);
28 AudioContentJwtVerifier(AudioContentJwtVerifier const&);
29 AudioContentJwtVerifier();
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 virtual ::Bedrock::Result<::Audio::VerifiedAudioContent> verifyAndDecode(
35 ::Audio::SignedAudioContent const& signedAudioContent,
36 ::Audio::SignedAudioContentSectionType expectedSectionType
37 ) const /*override*/;
38 // NOLINTEND
39
40public:
41 // member functions
42 // NOLINTBEGIN
44 ::std::string expectedIssuer,
45 ::std::function<::std::optional<::WebKey>(::std::string_view)> trustedKeyResolver
46 );
47 // NOLINTEND
48
49public:
50 // constructor thunks
51 // NOLINTBEGIN
52 MCNAPI void* $ctor(
53 ::std::string expectedIssuer,
54 ::std::function<::std::optional<::WebKey>(::std::string_view)> trustedKeyResolver
55 );
56 // NOLINTEND
57
58public:
59 // virtual function thunks
60 // NOLINTBEGIN
61 MCNAPI ::Bedrock::Result<::Audio::VerifiedAudioContent> $verifyAndDecode(
62 ::Audio::SignedAudioContent const& signedAudioContent,
63 ::Audio::SignedAudioContentSectionType expectedSectionType
64 ) const;
65
66
67 // NOLINTEND
68
69public:
70 // vftables
71 // NOLINTBEGIN
72 MCNAPI static void** $vftable();
73 // NOLINTEND
74};
MCAPI ::Bedrock::Result<::Audio::VerifiedAudioContent > $verifyAndDecode(::Audio::SignedAudioContent const &signedAudioContent, ::Audio::SignedAudioContentSectionType expectedSectionType) const
MCAPI AudioContentJwtVerifier(::std::string expectedIssuer, ::std::function<::std::optional<::WebKey >(::std::string_view)> trustedKeyResolver)
static MCAPI void ** $vftable()
MCAPI void * $ctor(::std::string expectedIssuer, ::std::function<::std::optional<::WebKey >(::std::string_view)> trustedKeyResolver)
Definition IAudioContentVerifier.h:17
Definition SignedAudioContent.h:7
Definition VerifiedAudioContent.h:7
Definition WebKey.h:13
Definition Alias.h:14