AipProtection.java 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package com.aip.gateway.api.aip.model;
  2. import lombok.AllArgsConstructor;
  3. import lombok.Builder;
  4. import lombok.Data;
  5. import lombok.NoArgsConstructor;
  6. @Data
  7. @NoArgsConstructor
  8. @AllArgsConstructor
  9. @Builder
  10. public class AipProtection {
  11. private AipProtectionDescriptor protectionDescriptor;
  12. /// <summary>Email address of content owner</summary>
  13. private String owner;
  14. /// <summary>The user associated with the protection handler</summary>
  15. private String issuedTo;
  16. /// <summary>Whether or not the current user is the content owner</summary>
  17. private boolean isIssuedToOwner;
  18. /// <summary>
  19. /// The unique identifier for the document/content
  20. /// Publishing licenses will have this identifier surrounded by curly braces "{}".
  21. /// Those braces are removed from the value returned here
  22. /// </summary>
  23. private String contentId;
  24. /// <summary> Whether or not protection handler uses deprecated crypto algorithms (ECB) for backward compatibility </summary>
  25. private boolean useDeprecatedAlgorithms;
  26. /// <summary> Whether or not protection handler grants user 'audited extract' right </summary>
  27. private boolean auditedExtractAllowed;
  28. /// <summary> The block size (in bytes) for the cipher mode used by this ProtectionHandler </summary>
  29. private long blockSize;
  30. }