Table of Contents

GameCenterCredentials

struct in Coherence.Cloud

The output of GameKit's fetchItems(forIdentityVerificationSignature:), used to log in to and link a Game Center player against coherence Cloud.

Remarks

The signature attests teamPlayerID ‖ bundleID ‖ timestamp ‖ salt, so all four must be the exact values the signature was generated with, or verification fails.

Being a struct, a default instance bypasses the constructor, so the getters coalesce as well: no property ever returns null, and callers can test for emptiness without a null check.

Constructors
GameCenterCredentials

Creates the Game Center credentials that GameKit's fetchItems(forIdentityVerificationSignature:) returned.

Properties
BundleId

Bundle identifier of the application the signature was generated for.

PublicKeyUrl

URL of the Apple certificate the signature can be verified against.

Salt

The salt the signature was generated with, Base64-encoded.

Signature

The signature, Base64-encoded.

TeamPlayerId

GKLocalPlayer.teamPlayerID — the only identifier the signature attests.

Timestamp

Time at which the signature was created, in milliseconds since the Unix epoch.

Methods
Equals
GetHashCode
ToString
Operators
op_Equality
op_Inequality