<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASPublicKeyCredential",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "c:objc(pl)ASPublicKeyCredential"
  },
  "title" : "ASPublicKeyCredential"
}
-->

# ASPublicKeyCredential

An interface that defines the properties of the public key.

```
protocol ASPublicKeyCredential : ASAuthorizationCredential
```

## Topics

### Getting the properties

[`var credentialID: Data`](/documentation/AuthenticationServices/ASPublicKeyCredential/credentialID)

An identifier that the authenticator generates during registration to uniquely identify a specific credential.

[`var rawClientDataJSON: Data`](/documentation/AuthenticationServices/ASPublicKeyCredential/rawClientDataJSON)

Raw data that contains a JSON-compatible encoding of the client data.

## Relationships

### Inherited By

[`ASAuthorizationPublicKeyCredentialAssertion`](/documentation/AuthenticationServices/ASAuthorizationPublicKeyCredentialAssertion)

[`ASAuthorizationPublicKeyCredentialRegistration`](/documentation/AuthenticationServices/ASAuthorizationPublicKeyCredentialRegistration)

### Inherits From

[`ASAuthorizationCredential`](/documentation/AuthenticationServices/ASAuthorizationCredential)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`NSCopying`](/documentation/Foundation/NSCopying)

### Conforming Types

[`ASAuthorizationSecurityKeyPublicKeyCredentialAssertion`](/documentation/AuthenticationServices/ASAuthorizationSecurityKeyPublicKeyCredentialAssertion)

[`ASAuthorizationPlatformPublicKeyCredentialRegistration`](/documentation/AuthenticationServices/ASAuthorizationPlatformPublicKeyCredentialRegistration)

[`ASAuthorizationPlatformPublicKeyCredentialAssertion`](/documentation/AuthenticationServices/ASAuthorizationPlatformPublicKeyCredentialAssertion)

[`ASAuthorizationSecurityKeyPublicKeyCredentialRegistration`](/documentation/AuthenticationServices/ASAuthorizationSecurityKeyPublicKeyCredentialRegistration)

---

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)