One Logo Pool Ball
PassKit · IOS API REFERENCE

JPKIPassContents.SigningIdentity

struct · iOS 18.0+ · SDK 27.1

struct SigningIdentity

Define functionality for the SigningIdentity type of Identity

Members (5)

method · iOS 18.0+

certificate

TypeScript
certificate(request: JPKIPassContents_AuthenticationRequest<JPKIPassContents_SigningIdentity>): Promise<JPKIPassContents_Certificate<JPKIPassContents_SigningIdentity>>
Swift declaration
func certificate(using request: JPKIPassContents.AuthenticationRequest<JPKIPassContents.SigningIdentity>) async throws -> JPKIPassContents.Certificate<JPKIPassContents.SigningIdentity>

Returns the certificate associated with an Identity - Properties: - authentication: User authentication request to perform certificate read with - throws: See Error type defined below

method · iOS 18.0+

changePassword

TypeScript
changePassword(oldValue: string, newValue: string): Promise<void>
Swift declaration
func changePassword(from oldValue: String, to newValue: String) async throws

Change the Password associated with the signing identity Note that the underlying credential imposes restrictions on the length and the allowed character set. In case of validation error, this will throw .invalidInput. - Properties: - oldValue: User authentication value used to perform the request to change password - newValue: New user authorization value to be applied to the certificate - throws: See Error type defined below

get · iOS 18.0+

authenticationTriesRemaining

TypeScript
get authenticationTriesRemaining(): Promise<number>
Swift declaration
var authenticationTriesRemaining: Int { get async throws }

The tries remaining before the underlying credential locks itself

method · iOS 18.0+

signature

TypeScript
signatureForUsing(data: ArrayBuffer, request: JPKIPassContents_AuthenticationRequest<JPKIPassContents_SigningIdentity>): Promise<JPKIPassContents_Signature<JPKIPassContents_SigningIdentity>>
Swift declaration
func signature(for data: Data, using request: JPKIPassContents.AuthenticationRequest<JPKIPassContents.SigningIdentity>) async throws -> JPKIPassContents.Signature<JPKIPassContents.SigningIdentity>

Signs the supplied data with the identity's private key - Properties: - data: Data to be signed with the specified identity - authentication: User authentication request to perform identity signature with - throws: See Error type defined below

method · iOS 18.0+

signature

TypeScript
signatureForUsing82568(data: Array<ArrayBuffer>, request: JPKIPassContents_AuthenticationRequest<JPKIPassContents_SigningIdentity>): Promise<Array<JPKIPassContents_Signature<JPKIPassContents_SigningIdentity>>>
Swift declaration
func signature(for data: [Data], using request: JPKIPassContents.AuthenticationRequest<JPKIPassContents.SigningIdentity>) async throws -> [JPKIPassContents.Signature<JPKIPassContents.SigningIdentity>]

Signs the supplied array of data with the identity's private key - Properties: - data: Data array to be signed with the specified identity - authentication: User authentication request to perform identity signature with - throws: See Error type defined below

Skipped declarations

No declarations were skipped in this snapshot.

All PassKit types →