No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AppleValidator.cs 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace UnityEngine.Purchasing.Security
  5. {
  6. /// <summary>
  7. /// THIS IS A STUB, WILL NOT EXECUTE CODE!
  8. ///
  9. /// This class will validate the Apple receipt is signed with the correct certificate.
  10. /// </summary>
  11. public class AppleValidator
  12. {
  13. /// <summary>
  14. /// THIS IS A STUB, WILL NOT EXECUTE CODE!
  15. ///
  16. /// Constructs an instance with Apple Certificate.
  17. /// </summary>
  18. /// <param name="appleRootCertificate">The apple certificate.</param>
  19. public AppleValidator(byte[] appleRootCertificate)
  20. {
  21. throw new NotImplementedException();
  22. }
  23. /// <summary>
  24. /// THIS IS A STUB, WILL NOT EXECUTE CODE!
  25. ///
  26. /// Validate that the Apple receipt is signed correctly.
  27. /// </summary>
  28. /// <param name="receiptData">The Apple receipt to validate.</param>
  29. /// <returns>The parsed AppleReceipt</returns>
  30. /// <exception cref="InvalidSignatureException">The exception thrown if the receipt is incorrectly signed.</exception>
  31. public AppleReceipt Validate(byte[] receiptData)
  32. {
  33. throw new NotImplementedException();
  34. }
  35. }
  36. /// <summary>
  37. /// THIS IS A STUB, WILL NOT EXECUTE CODE!
  38. ///
  39. /// This class with parse the Apple receipt data received in byte[] into a AppleReceipt object
  40. /// </summary>
  41. public class AppleReceiptParser
  42. {
  43. /// <summary>
  44. /// THIS IS A STUB, WILL NOT EXECUTE CODE!
  45. ///
  46. /// Parse the Apple receipt data into a AppleReceipt object
  47. /// </summary>
  48. /// <param name="receiptData">Apple receipt data</param>
  49. /// <returns>The converted AppleReceipt object from the Apple receipt data</returns>
  50. public AppleReceipt Parse(byte[] receiptData)
  51. {
  52. throw new NotImplementedException();
  53. }
  54. }
  55. }