docs.unity3d.com
    Show / Hide Table of Contents

    Class AppleValidator

    This class will validate the Apple receipt is signed with the correct certificate.

    Inheritance
    Object
    AppleValidator
    Namespace: UnityEngine.Purchasing.Security
    Syntax
    public class AppleValidator : object

    Constructors

    AppleValidator(Byte[])

    THIS IS A STUB, WILL NOT EXECUTE CODE!

    Constructs an instance with Apple Certificate.

    Declaration
    public AppleValidator(byte[] appleRootCertificate)
    Parameters
    Type Name Description
    Byte[] appleRootCertificate

    The apple certificate.

    AppleValidator(Byte[])

    THIS IS A STUB, WILL NOT EXECUTE CODE!

    Constructs an instance with Apple Certificate.

    Declaration
    public AppleValidator(byte[] appleRootCertificate)
    Parameters
    Type Name Description
    Byte[] appleRootCertificate

    The apple certificate.

    Methods

    Validate(Byte[])

    THIS IS A STUB, WILL NOT EXECUTE CODE!

    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.

    Validate(Byte[])

    THIS IS A STUB, WILL NOT EXECUTE CODE!

    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.

    In This Article
    • Constructors
      • AppleValidator(Byte[])
      • AppleValidator(Byte[])
    • Methods
      • Validate(Byte[])
      • Validate(Byte[])
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023