Advertisement
kadyr

Untitled

Aug 9th, 2021
1,271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.89 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4.  
  5. namespace UnityEngine.Purchasing.Security
  6. {
  7.     /// <summary>
  8.     /// THIS IS A STUB, WILL NOT EXECUTE CODE!
  9.     ///
  10.     /// This class will validate the Apple receipt is signed with the correct certificate.
  11.     /// </summary>
  12.     public class AppleValidator
  13.     {
  14.         /// <summary>
  15.         /// THIS IS A STUB, WILL NOT EXECUTE CODE!
  16.         ///
  17.         /// Constructs an instance with Apple Certificate.
  18.         /// </summary>
  19.         /// <param name="appleRootCertificate">The apple certificate.</param>
  20.         public AppleValidator (byte[] appleRootCertificate)
  21.         {
  22.             throw new NotImplementedException();
  23.         }
  24.  
  25.         /// <summary>
  26.         /// THIS IS A STUB, WILL NOT EXECUTE CODE!
  27.         ///
  28.         /// Validate that the Apple receipt is signed correctly.
  29.         /// </summary>
  30.         /// <param name="receiptData">The Apple receipt to validate.</param>
  31.         /// <returns>The parsed AppleReceipt</returns>
  32.         /// <exception cref="InvalidSignatureException">The exception thrown if the receipt is incorrectly signed.</exception>
  33.         public AppleReceipt Validate (byte [] receiptData)
  34.         {
  35.             throw new NotImplementedException();
  36.         }
  37.     }
  38.  
  39.     /// <summary>
  40.     /// THIS IS A STUB, WILL NOT EXECUTE CODE!
  41.     ///
  42.     /// This class with parse the Apple receipt data received in byte[] into a AppleReceipt object
  43.     /// </summary>
  44.     public class AppleReceiptParser
  45.     {
  46.         /// <summary>
  47.         /// THIS IS A STUB, WILL NOT EXECUTE CODE!
  48.         ///
  49.         /// Parse the Apple receipt data into a AppleReceipt object
  50.         /// </summary>
  51.         /// <param name="receiptData">Apple receipt data</param>
  52.         /// <returns>The converted AppleReceipt object from the Apple receipt data</returns>
  53.         public AppleReceipt Parse (byte [] receiptData)
  54.         {
  55.             throw new NotImplementedException();
  56.         }
  57.     }
  58. }
  59.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement