<!--
{
  "availability" : [
    "iOS: 18.1.0 -",
    "iPadOS: 18.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SecureElementCredential",
  "identifier" : "/documentation/SecureElementCredential/CredentialSession/Credential",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SecureElementCredential"
    ],
    "preciseIdentifier" : "s:23SecureElementCredential0C7SessionC0C0V"
  },
  "title" : "CredentialSession.Credential"
}
-->

# CredentialSession.Credential

Information about a credential that a credential session retrieves from the Secure Element.

```
struct Credential
```

## Overview

A credential is an abstraction of the cryptographic elements of your applet bundle installed in the Secure Element. You perform this installation with [`provisionCredential(configurationUUID:name:)`](/documentation/SecureElementCredential/CredentialSession/provisionCredential(configurationUUID:name:)), which retrieves the applet bundle you registered with the [Apple Business Register](https://register.apple.com/login), installs it in the Secure Element, and returns a `Credential` instance.

`Credential` objects are snapshots of credential data at the time the [`listCredentials()`](/documentation/SecureElementCredential/CredentialSession/listCredentials()) method loads them. To ensure up-to-date metadata, reload credentials with that same method.

## Topics

### Identifying a credential

[`let identifier: UUID`](/documentation/SecureElementCredential/CredentialSession/Credential/identifier)

A unique identifier for the credential.

### Getting a display name

[`let name: String`](/documentation/SecureElementCredential/CredentialSession/Credential/name)

A readable name for the credential.

### Inspecting credential state

[`let state: CredentialSession.Credential.State`](/documentation/SecureElementCredential/CredentialSession/Credential/state-swift.property)

A snapshot of the credential’s installation state.

[`enum State`](/documentation/SecureElementCredential/CredentialSession/Credential/State-swift.enum)

An enumeration of possible values of a credential’s installation state.

### Hashing

[`func hash(into: inout Hasher)`](/documentation/SecureElementCredential/CredentialSession/Credential/hash(into:))

### Supporting types

[`struct InstanceInfo`](/documentation/SecureElementCredential/CredentialSession/Credential/InstanceInfo)

Information about an applet instance associated with a specific credential.

## Relationships

### Conforms To

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

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

[`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)