docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    AppleValidator
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)