Classe ProtectionDescriptorclass ProtectionDescriptor
Descrizione della protezione associata a una parte del contenuto.Description of protection associated with a piece of content.
RiepilogoSummary
MembriMembers | DescrizioniDescriptions |
---|---|
public ProtectionType GetProtectionType() constpublic ProtectionType GetProtectionType() const | Ottiene il tipo di protezione, indipendentemente dal fatto che abbia avuto origine da un modello di SDK di protezione o meno.Gets type of protection, whether it originated from protection SDK template or not. |
public std::string GetOwner() constpublic std::string GetOwner() const | Ottiene il proprietario per la protezione.Gets owner for the protection. |
public std::string GetName() constpublic std::string GetName() const | Ottiene il nome della protezione.Gets protection name. |
public std::string GetDescription() constpublic std::string GetDescription() const | Ottiene la descrizione della protezione.Gets protection description. |
public std::string GetTemplateId() constpublic std::string GetTemplateId() const | Ottiene l'ID del modello di protezione, se presente.Gets the protection template ID, if any. |
public std::string GetLabelId() constpublic std::string GetLabelId() const | Ottiene l'ID etichetta, se presente.Gets the label ID, if any. |
public std:: String GetContentId () constpublic std::string GetContentId() const | Ottiene l'ID contenuto, se disponibile.Gets the Content ID, if any. |
public std::vector<UserRights> GetUserRights() constpublic std::vector<UserRights> GetUserRights() const | Ottiene una raccolta di mapping dei diritti agli utenti.Gets collection of users-to-rights mappings. |
public std::vector<UserRoles> GetUserRoles() constpublic std::vector<UserRoles> GetUserRoles() const | Ottiene una raccolta di mapping dei ruoli agli utenti.Gets collection of users-to-roles mappings. |
public bool DoesContentExpire () constpublic bool DoesContentExpire() const | Verifica se il contenuto ha una data di scadenza.Checks if content has an expiration time or not. |
public std:: Chrono:: time_point <std::chrono::system_clock> GetContentValidUntil () constpublic std::chrono::time_point<std::chrono::system_clock> GetContentValidUntil() const | Ottiene l'ora di scadenza della protezione.Gets protection expiration time. |
public bool DoesAllowOfflineAccess() constpublic bool DoesAllowOfflineAccess() const | Ottiene un valore che indica se la protezione consente o meno l'accesso al contenuto offline.Gets if protection allows offline content access or not. |
public std::string GetReferrer() constpublic std::string GetReferrer() const | Ottiene l'indirizzo del referrer della protezione.Gets protection referrer address. |
public std:: Map <std::string, std::string> GetEncryptedAppData () constpublic std::map<std::string, std::string> GetEncryptedAppData() const | Ottiene i dati specifici dell'app che sono stati crittografati.Gets app-specific data that was encrypted. |
public std:: Map <std::string, std::string> GetSignedAppData () constpublic std::map<std::string, std::string> GetSignedAppData() const | Ottiene i dati specifici dell'app che sono stati firmati.Gets the app-specific data that was signed. |
public std:: String GetDoubleKeyUrl () constpublic std::string GetDoubleKeyUrl() const | Ottiene l'URL della chiave doppia da utilizzare per la protezione personalizzata.Gets the double key url to be used for custom protection. |
MembriMembers
GetProtectionType (funzione)GetProtectionType function
Ottiene il tipo di protezione, indipendentemente dal fatto che abbia avuto origine da un modello di SDK di protezione o meno.Gets type of protection, whether it originated from protection SDK template or not.
Restituisce: tipo di protezioneReturns: Type of protection
Funzione GetOwnerGetOwner function
Ottiene il proprietario per la protezione.Gets owner for the protection.
Restituisce: proprietario della protezioneReturns: Owner of protection
GetName (funzione)GetName function
Ottiene il nome della protezione.Gets protection name.
Restituisce: nome della protezioneReturns: Protection name
Funzione GetDescriptionGetDescription function
Ottiene la descrizione della protezione.Gets protection description.
Restituisce: descrizione della protezioneReturns: Protection description
GetTemplateId (funzione)GetTemplateId function
Ottiene l'ID del modello di protezione, se presente.Gets the protection template ID, if any.
Restituisce: ID modelloReturns: Template ID
GetLabelId (funzione)GetLabelId function
Ottiene l'ID etichetta, se presente.Gets the label ID, if any.
Restituisce: ID etichetta questa proprietà verrà popolata solo in ProtectionDescriptors per il contenuto protetto preesistente.Returns: Label ID This property will only be populated in ProtectionDescriptors for preexisting protected content. È un campo popolato dal server nel momento in cui il contenuto protetto viene utilizzato.It is a field populated by the server at the moment protected content is consumed.
GetContentId (funzione)GetContentId function
Ottiene l'ID contenuto, se disponibile.Gets the Content ID, if any.
Restituisce: ID contenutoReturns: Content ID
GetUserRights (funzione)GetUserRights function
Ottiene una raccolta di mapping dei diritti agli utenti.Gets collection of users-to-rights mappings.
Restituisce: raccolta di mapping degli utenti ai diritti. Il valore della proprietà UserRights sarà vuoto se l'utente corrente non ha accesso a queste informazioni, ovvero se l'utente non è il proprietario e non ha il diritto VIEWRIGHTSDATA.Returns: Collection of users-to-rights mappings The value of the UserRights property will be empty if the current user doesn't have access to this information (that is, if the user is not the owner and does not have the VIEWRIGHTSDATA right).
GetUserRoles (funzione)GetUserRoles function
Ottiene una raccolta di mapping dei ruoli agli utenti.Gets collection of users-to-roles mappings.
Restituisce: raccolta di mapping degli utenti ai ruoliReturns: Collection of users-to-roles mappings
DoesContentExpire (funzione)DoesContentExpire function
Verifica se il contenuto ha una data di scadenza.Checks if content has an expiration time or not.
Restituisce: true se il contenuto può scadere, altrimenti falseReturns: True if content can expire, else false
GetContentValidUntil (funzione)GetContentValidUntil function
Ottiene l'ora di scadenza della protezione.Gets protection expiration time.
Restituisce: ora di scadenza della protezioneReturns: Protection expiration time
DoesAllowOfflineAccess (funzione)DoesAllowOfflineAccess function
Ottiene un valore che indica se la protezione consente o meno l'accesso al contenuto offline.Gets if protection allows offline content access or not.
Restituisce: valore che indica se la protezione consente o meno l'accesso al contenuto offline (impostazione predefinita = true)Returns: If protection allows offline content access or not (default = true)
GetReferrer (funzione)GetReferrer function
Ottiene l'indirizzo del referrer della protezione.Gets protection referrer address.
Restituisce: indirizzo del referrer della protezione. Il referrer è un URI visualizzabile per l'utente se non è possibile rimuovere la protezione dal contenuto.Returns: Protection referrer address The referrer is a URI that is displayable to the user if they cannot unprotect the content. Contiene informazioni sul modo in cui tale utente può ottenere l'autorizzazione per accedere al contenuto.It contains information on how that user can gain permission to access the content.
GetEncryptedAppData (funzione)GetEncryptedAppData function
Ottiene i dati specifici dell'app che sono stati crittografati.Gets app-specific data that was encrypted.
Restituisce: dati specifici dell'app. Un oggetto ProtectionHandler può includere un dizionario di dati specifici dell'app che sono stati crittografati dal servizio di protezione.Returns: App-specific data A ProtectionHandler may hold a dictionary of app-specific data that was encrypted by the protection service. Questi dati crittografati sono indipendenti dai dati firmati accessibili tramite ProtectionDescriptor::GetSignedAppDataThis encrypted data is independent of the signed data accessible via ProtectionDescriptor::GetSignedAppData
GetSignedAppData (funzione)GetSignedAppData function
Ottiene i dati specifici dell'app che sono stati firmati.Gets the app-specific data that was signed.
Restituisce: dati specifici dell'app. Un oggetto ProtectionHandler può includere un dizionario di dati specifici dell'app che sono stati firmati dal servizio di protezione.Returns: App-specific data A ProtectionHandler may hold a dictionary of app-specific data that was signed by the protection service. Questi dati firmati sono indipendenti dai dati crittografati accessibili tramite ProtectionDescriptor::GetEncryptedAppDataThis signed data is independent of the encrypted data accessible via ProtectionDescriptor::GetEncryptedAppData
GetDoubleKeyUrl (funzione)GetDoubleKeyUrl function
Ottiene l'URL della chiave doppia da utilizzare per la protezione personalizzata.Gets the double key url to be used for custom protection.
Returns: URL a doppia chiave che viene usato nelle richieste personalizzate per proteggere le informazioni con una seconda chiaveReturns: Double key url The double key URL that is used in custom requests to protect information with a second key