Classe ProtectionProfile:: Settingsclass ProtectionProfile::Settings
Oggetto Settings usato da ProtectionProfile durante la creazione e per tutta la sua durata.Settings used by ProtectionProfile during its creation and throughout its lifetime.
RiepilogoSummary
MembriMembers | DescrizioniDescriptions |
---|---|
Impostazioni pubbliche (const std:: shared_ptr <MipContext>& mipContext, cacheStorageType CacheStorageType, const std:: shared_ptr <ConsentDelegate>& consentDelegate, const std:: shared_ptr <ProtectionProfile::Observer>& Observer)public Settings(const std::shared_ptr<MipContext>& mipContext, CacheStorageType cacheStorageType, const std::shared_ptr<ConsentDelegate>& consentDelegate, const std::shared_ptr<ProtectionProfile::Observer>& observer) | Costruttore ProtectionProfile::Settings che specifica un observer da usare per le operazioni asincrone.ProtectionProfile::Settings constructor that specifies an observer to be used for async operations. |
Impostazioni pubbliche (const std:: shared_ptr <MipContext>& mipContext, cacheStorageType CacheStorageType, const std:: shared_ptr <ConsentDelegate>& consentDelegate)public Settings(const std::shared_ptr<MipContext>& mipContext, CacheStorageType cacheStorageType, const std::shared_ptr<ConsentDelegate>& consentDelegate) | Costruttore ProtectionProfile::Settings, usato per le operazioni sincrone.ProtectionProfile::Settings constructor, used for synchronous operations. |
public CacheStorageType GetCacheStorageType () constpublic CacheStorageType GetCacheStorageType() const | Ottiene un valore che indica se le cache sono archiviate in memoria o su disco.Get whether caches are stored in memory or on disk. |
public std::shared_ptr<ConsentDelegate> GetConsentDelegate() constpublic std::shared_ptr<ConsentDelegate> GetConsentDelegate() const | Ottiene il delegato del consenso usato per la connessione ai servizi.Gets the consent delegate used for connecting to services. |
public std::shared_ptr<ProtectionProfile::Observer> GetObserver() constpublic std::shared_ptr<ProtectionProfile::Observer> GetObserver() const | Ottiene l'observer che riceve le notifiche degli eventi correlati a ProtectionProfile.Gets the observer that receives notifications of events related to ProtectionProfile. |
public std:: shared_ptr <MipContext> GetMipContext () constpublic std::shared_ptr<MipContext> GetMipContext() const | Ottiene il contesto MIP che rappresenta lo stato condiviso in tutti i profili.Get MIP context which represents shared state across all profiles. |
public std::shared_ptr<HttpDelegate> GetHttpDelegate() constpublic std::shared_ptr<HttpDelegate> GetHttpDelegate() const | Ottiene il delegato HTTP (se disponibile) specificato dall'applicazione.Get the HTTP delegate (if any) provided by the application. |
public void SetHttpDelegate(const std::shared_ptr<HttpDelegate>& httpDelegate)public void SetHttpDelegate(const std::shared_ptr<HttpDelegate>& httpDelegate) | Esegue l'override dello stack HTTP predefinito con quello del client.Override default HTTP stack with client's own. |
public std:: shared_ptr <TaskDispatcherDelegate> GetTaskDispatcherDelegate () constpublic std::shared_ptr<TaskDispatcherDelegate> GetTaskDispatcherDelegate() const | Ottenere il delegato TaskDispatcher (se presente) fornito dall'applicazione.Get the TaskDispatcher delegate (if any) provided by the application. |
public void SetTaskDispatcherDelegate (const std:: shared_ptr <TaskDispatcherDelegate>& taskDispatcherDelegate)public void SetTaskDispatcherDelegate(const std::shared_ptr<TaskDispatcherDelegate>& taskDispatcherDelegate) | Eseguire l'override della gestione delle attività modo asincrono rispetto predefinite con il client.Override default asynchonous task dispatching handling with client's own. |
public void SetSessionId(const std::string& sessionId)public void SetSessionId(const std::string& sessionId) | Imposta l'ID sessione.Sets the session ID. |
public const std::string& GetSessionId() constpublic const std::string& GetSessionId() const | Ottiene l'ID sessione.Gets the session ID. |
public void SetCanCacheLicenses (bool canCacheLicenses)public void SetCanCacheLicenses(bool canCacheLicenses) | Configura se le licenze dell'utente finale (contratti) verranno memorizzate nella cache locale.Configures whether or not end user licenses (EULs) will be cached locally. |
public bool CanCacheLicenses () constpublic bool CanCacheLicenses() const | Ottiene un valore che indica se le licenze dell'utente finale (contratti) sono memorizzate nella cache locale.Gets whether or not end user licenses (EULs) are cached locally. |
public void SetCustomSettings (const std:: Vector <std::pair<std::string, std::string> >& customSettings)public void SetCustomSettings(const std::vector<std::pair<std::string, std::string>>& customSettings) | Imposta le impostazioni personalizzate, usate a scopi di controllo e test delle funzionalità.Set the custom settings, used for feature gating and testing. |
public const std:: Vector <std::pair<std::string, std::string> >& GetCustomSettings () constpublic const std::vector<std::pair<std::string, std::string>>& GetCustomSettings() const | Ottiene le impostazioni personalizzate, usate a scopi di controllo e test delle funzionalità.Get the custom settings, used for feature gating and testing. |
MembriMembers
Funzione SettingsSettings function
Costruttore ProtectionProfile::Settings che specifica un observer da usare per le operazioni asincrone.ProtectionProfile::Settings constructor that specifies an observer to be used for async operations.
ParametriParameters:
mipContext: impostazioni di contesto globalimipContext: Global context settings
cacheStorageType: archivia lo stato memorizzato nella cache in memoria o su discocacheStorageType: Store any cached state in memory or on disk
consentDelegate: delegato usato per ottenere l'autorizzazione utente per accedere alle risorse esterneconsentDelegate: Delegate used to obtain user permission to access external resources
Observer: istanza Observer che riceverà le notifiche degli eventi correlati a ProtectionProfileobserver: Observer instance that will receive notifications of events related to ProtectionProfile
applicationInfo: informazioni sull'applicazione che sta utilizzando l'SDK di protezioneapplicationInfo: Info about application that is consuming the protection SDK
Funzione SettingsSettings function
Costruttore ProtectionProfile::Settings, usato per le operazioni sincrone.ProtectionProfile::Settings constructor, used for synchronous operations.
ParametriParameters:
mipContext: impostazioni di contesto globalimipContext: Global context settings
cacheStorageType: archivia lo stato memorizzato nella cache in memoria o su discocacheStorageType: Store any cached state in memory or on disk
consentDelegate: delegato usato per ottenere l'autorizzazione utente per accedere alle risorse esterneconsentDelegate: Delegate used to obtain user permission to access external resources
applicationInfo: informazioni sull'applicazione che sta utilizzando l'SDK di protezioneapplicationInfo: Info about application which is consuming the protection SDK
GetCacheStorageType (funzione)GetCacheStorageType function
Ottiene un valore che indica se le cache sono archiviate in memoria o su disco.Get whether caches are stored in memory or on disk.
Restituisce: tipo di archiviazione usatoReturns: Storage type used
GetConsentDelegate (funzione)GetConsentDelegate function
Ottiene il delegato del consenso usato per la connessione ai servizi.Gets the consent delegate used for connecting to services.
Restituisce: delegato del consenso usato per la connessione ai serviziReturns: Consent delegate used for connecting to services
Getobserver (funzione)GetObserver function
Ottiene l'observer che riceve le notifiche degli eventi correlati a ProtectionProfile.Gets the observer that receives notifications of events related to ProtectionProfile.
Restituisce: Observer che riceve le notifiche degli eventi correlati a ProtectionProfileReturns: Observer that receives notifications of events related to ProtectionProfile
GetMipContext (funzione)GetMipContext function
Ottiene il contesto MIP che rappresenta lo stato condiviso in tutti i profili.Get MIP context which represents shared state across all profiles.
Restituisce: contesto MIPReturns: MIP context
GetHttpDelegate (funzione)GetHttpDelegate function
Ottiene il delegato HTTP (se disponibile) specificato dall'applicazione.Get the HTTP delegate (if any) provided by the application.
Restituisce: delegato HTTP da usare per le operazioni HTTPReturns: HTTP delegate to be used for HTTP operations
SetHttpDelegate (funzione)SetHttpDelegate function
Esegue l'override dello stack HTTP predefinito con quello del client.Override default HTTP stack with client's own.
ParametriParameters:
- httpDelegate: interfaccia di callback http implementata dall'applicazione clienthttpDelegate: HTTP callback interface implemented by client application
GetTaskDispatcherDelegate (funzione)GetTaskDispatcherDelegate function
Ottenere il delegato TaskDispatcher (se presente) fornito dall'applicazione.Get the TaskDispatcher delegate (if any) provided by the application.
Restituisce: delegato TaskDispatcher da usare per l'esecuzione di attività asincroneReturns: TaskDispatcher delegate to be used for executing asynchronous tasks
SetTaskDispatcherDelegate (funzione)SetTaskDispatcherDelegate function
Eseguire l'override della gestione delle attività modo asincrono rispetto predefinite con il client.Override default asynchonous task dispatching handling with client's own.
ParametriParameters:
- taskDispatcherDelegate: interfaccia di callback di invio dell'attività implementata dall'applicazione clienttaskDispatcherDelegate: Task dispatching callback interface implemented by client application
le attività possono fare riferimento a oggetti del profilo che ne impediscono la distruzione come risultato taskdispatcher le code non devono essere condivise.tasks can reference profile objects preventing its destruction as a result taskdispatcher queues should not be shared.
Funzione SessionIdSetSessionId function
Imposta l'ID sessione.Sets the session ID.
ParametriParameters:
- sessionId: ID sessione che verrà usato per la correlazione di log/telemetriasessionId: Session ID that will be used to correlate logs/telemetry
Funzione GetSessionIDGetSessionId function
Ottiene l'ID sessione.Gets the session ID.
Restituisce: ID sessione che verrà usato per la correlazione di log/telemetriaReturns: Session ID that will be used to correlate logs/telemetry
SetCanCacheLicenses (funzione)SetCanCacheLicenses function
Configura se le licenze dell'utente finale (contratti) verranno memorizzate nella cache locale.Configures whether or not end user licenses (EULs) will be cached locally.
ParametriParameters:
- canCacheLicenses: indica se il motore deve memorizzare nella cache una licenza quando apre il contenuto protettocanCacheLicenses: Whether or not engine should cache a license when opening protected content
Se true, l'apertura del contenuto protetto memorizza nella cache la licenza associata localmente.If true, opening protected content will cache the associated license locally. Se false, l'apertura del contenuto protetto eseguirà sempre l'operazione HTTP per acquisire la licenza dal servizio RMS.If false, opening protected content will always perform HTTP operation to acquire the license from the RMS service.
CanCacheLicenses (funzione)CanCacheLicenses function
Ottiene un valore che indica se le licenze dell'utente finale (contratti) sono memorizzate nella cache locale.Gets whether or not end user licenses (EULs) are cached locally.
Restituisce: configurazione della memorizzazione nella cache delle licenzeReturns: License caching configuration
SetCustomSettings (funzione)SetCustomSettings function
Imposta le impostazioni personalizzate, usate a scopi di controllo e test delle funzionalità.Set the custom settings, used for feature gating and testing.
ParametriParameters:
- customSettings: elenco di coppie nome/valore.customSettings: List of name/value pairs.
GetCustomSettings (funzione)GetCustomSettings function
Ottiene le impostazioni personalizzate, usate a scopi di controllo e test delle funzionalità.Get the custom settings, used for feature gating and testing.
Restituisce:: elenco di coppie nome/valore.Returns: List of name/value pairs.