<!--
{
  "availability" : [
    "iOS: 16.1.0 -",
    "iPadOS: 16.1.0 -",
    "macCatalyst: -",
    "macOS: 14.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "MatterSupport",
  "identifier" : "/documentation/MatterSupport/MatterAddDeviceExtensionRequestHandler/DeviceCredential",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "MatterSupport"
    ],
    "preciseIdentifier" : "s:13MatterSupport0A32AddDeviceExtensionRequestHandlerC0D10CredentialV"
  },
  "title" : "MatterAddDeviceExtensionRequestHandler.DeviceCredential"
}
-->

# MatterAddDeviceExtensionRequestHandler.DeviceCredential

A collection of device credentials the device presents during commissioning.

```
struct DeviceCredential
```

## Topics

### Creating the credential

[`init(certificationDeclaration: Data, deviceAttestationCertificate: Data, productAttestationIntermediateCertificate: Data)`](/documentation/MatterSupport/MatterAddDeviceExtensionRequestHandler/DeviceCredential/init(certificationDeclaration:deviceAttestationCertificate:productAttestationIntermediateCertificate:))

Creates the credential object.

### Getting the properties

[`var certificationDeclaration: Data`](/documentation/MatterSupport/MatterAddDeviceExtensionRequestHandler/DeviceCredential/certificationDeclaration)

The device’s Certification Declaration as defined in the Matter specification.

[`var deviceAttestationCertificate: Data`](/documentation/MatterSupport/MatterAddDeviceExtensionRequestHandler/DeviceCredential/deviceAttestationCertificate)

The device’s Device Attestation Certificate as defined in the Matter specification.

[`var productAttestationIntermediateCertificate: Data`](/documentation/MatterSupport/MatterAddDeviceExtensionRequestHandler/DeviceCredential/productAttestationIntermediateCertificate)

The device’s Product Attestation Intermediate Certificate as defined in the Matter specification.

### Encoding the credential

### Comparing credentials

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Encodable`](/documentation/Swift/Encodable)

[`Decodable`](/documentation/Swift/Decodable)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

---

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)