Class AppleValidator
This class will validate the Apple receipt is signed with the correct certificate. Note: when building for non-Apple platforms, this will not execute code.
Inherited Members
Namespace: UnityEngine.Purchasing.Security
Assembly: Unity.Purchasing.SecurityStub.dll
Syntax
[Obsolete("AppleValidator is a stub and does not perform any validation. Do not use this class. Use UnityEngine.Purchasing.Security.CrossPlatformValidator with a valid Apple certificate for receipt validation.", false)]
public class AppleValidator
Constructors
AppleValidator(byte[])
Constructs an instance with Apple Certificate.
Declaration
public AppleValidator(byte[] appleRootCertificate)
Parameters
Type | Name | Description |
---|---|---|
byte[] | appleRootCertificate | The apple certificate. |
Exceptions
Type | Condition |
---|---|
NotImplementedException | Not implemented for this platform. |
Methods
Validate(byte[])
Validate that the Apple receipt is signed correctly.
Declaration
public AppleReceipt Validate(byte[] receiptData)
Parameters
Type | Name | Description |
---|---|---|
byte[] | receiptData | The Apple receipt to validate. |
Returns
Type | Description |
---|---|
AppleReceipt | The parsed AppleReceipt |
Exceptions
Type | Condition |
---|---|
InvalidSignatureException | The exception thrown if the receipt is incorrectly signed. |
NotImplementedException | Not implemented for this platform. |