<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PassKit",
  "identifier" : "/documentation/PassKit/JPKIPassContents/Identity",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "PassKit (Apple Pay and Wallet)"
    ],
    "preciseIdentifier" : "s:7PassKit16JPKIPassContentsV8IdentityP"
  },
  "title" : "JPKIPassContents.Identity"
}
-->

# JPKIPassContents.Identity

Defines the common functionality that JPKI digital identities support.

```
protocol Identity
```

## Topics

### Data associated with the identity

[`associatedtype IdentityType : JPKIPassContents.Identity`](/documentation/PassKit/JPKIPassContents/Identity/IdentityType)

The type associated with the protocol.

[`func certificate(using: JPKIPassContents.AuthenticationRequest<Self.IdentityType>) async throws -> JPKIPassContents.Certificate<Self.IdentityType>`](/documentation/PassKit/JPKIPassContents/Identity/certificate(using:))

The certificate associated with the Identity.

### Instance Properties

[`var authenticationTriesRemaining: Int`](/documentation/PassKit/JPKIPassContents/Identity/authenticationTriesRemaining)

The tries remaining before the underlying credential locks itself

### Instance Methods

[`func signature(for: [Data], using: JPKIPassContents.AuthenticationRequest<Self.IdentityType>) async throws -> [JPKIPassContents.Signature<Self.IdentityType>]`](/documentation/PassKit/JPKIPassContents/Identity/signature(for:using:)-35arv)

Signs the supplied array of data with the identity’s private key

[`func signature(for: Data, using: JPKIPassContents.AuthenticationRequest<Self.IdentityType>) async throws -> JPKIPassContents.Signature<Self.IdentityType>`](/documentation/PassKit/JPKIPassContents/Identity/signature(for:using:)-4l8jw)

Signs the supplied data with the identity’s private key

## Relationships

### Conforming Types

[`SigningIdentity-swift.struct`](/documentation/PassKit/JPKIPassContents/SigningIdentity-swift.struct)

[`UserIdentity-swift.struct`](/documentation/PassKit/JPKIPassContents/UserIdentity-swift.struct)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)