---
title: ASImportableCredential
framework: authenticationservices
role: symbol
role_heading: Enumeration
path: authenticationservices/asimportablecredential
---

# ASImportableCredential

A credential for use in import and export.

## Declaration

```swift
enum ASImportableCredential
```

## Overview

Overview A credential represents a piece of secure information associated with an item. ASImportableCredential currently supports the following kinds of credentials: Password (BasicAuthentication) Passkey Time-based one-time password (TOTP) Note Credit card This type is a representation of Credential as defined in the Credential Exchange Format (CXF) specification. You can supply a JSON representation of a CXF Credential to initialize an instance of this struct by using a JSONDecoder and calling decode(_:from:).

## Topics

### Login credential types

- [ASImportableCredential.basicAuthentication(_:)](authenticationservices/asimportablecredential/basicauthentication(_:).md)
- [ASImportableCredential.BasicAuthentication](authenticationservices/asimportablecredential/basicauthentication.md)
- [ASImportableCredential.passkey(_:)](authenticationservices/asimportablecredential/passkey(_:).md)
- [ASImportableCredential.Passkey](authenticationservices/asimportablecredential/passkey.md)
- [ASImportableCredential.totp(_:)](authenticationservices/asimportablecredential/totp(_:).md)
- [ASImportableCredential.TOTP](authenticationservices/asimportablecredential/totp.md)

### Document credential types

- [ASImportableCredential.note(_:)](authenticationservices/asimportablecredential/note(_:).md)
- [ASImportableCredential.Note](authenticationservices/asimportablecredential/note.md)

### Identity credential types

- [ASImportableCredential.creditCard(_:)](authenticationservices/asimportablecredential/creditcard(_:).md)
- [ASImportableCredential.CreditCard](authenticationservices/asimportablecredential/creditcard.md)

### Structures

- [ASImportableCredential.APIKey](authenticationservices/asimportablecredential/apikey.md)
- [ASImportableCredential.Address](authenticationservices/asimportablecredential/address.md)
- [ASImportableCredential.CustomFields](authenticationservices/asimportablecredential/customfields.md)
- [ASImportableCredential.DriversLicense](authenticationservices/asimportablecredential/driverslicense.md)
- [ASImportableCredential.GeneratedPassword](authenticationservices/asimportablecredential/generatedpassword.md)
- [ASImportableCredential.IdentityDocument](authenticationservices/asimportablecredential/identitydocument.md)
- [ASImportableCredential.ItemReference](authenticationservices/asimportablecredential/itemreference.md)
- [ASImportableCredential.Passport](authenticationservices/asimportablecredential/passport.md)
- [ASImportableCredential.PersonName](authenticationservices/asimportablecredential/personname.md)
- [ASImportableCredential.SSHKey](authenticationservices/asimportablecredential/sshkey.md)
- [ASImportableCredential.WiFi](authenticationservices/asimportablecredential/wifi.md)

### Enumeration Cases

- [ASImportableCredential.address(_:)](authenticationservices/asimportablecredential/address(_:).md)
- [ASImportableCredential.apiKey(_:)](authenticationservices/asimportablecredential/apikey(_:).md)
- [ASImportableCredential.customFields(_:)](authenticationservices/asimportablecredential/customfields(_:).md)
- [ASImportableCredential.driversLicense(_:)](authenticationservices/asimportablecredential/driverslicense(_:).md)
- [ASImportableCredential.generatedPassword(_:)](authenticationservices/asimportablecredential/generatedpassword(_:).md)
- [ASImportableCredential.identityDocument(_:)](authenticationservices/asimportablecredential/identitydocument(_:).md)
- [ASImportableCredential.itemReference(_:)](authenticationservices/asimportablecredential/itemreference(_:).md)
- [ASImportableCredential.passport(_:)](authenticationservices/asimportablecredential/passport(_:).md)
- [ASImportableCredential.personName(_:)](authenticationservices/asimportablecredential/personname(_:).md)
- [ASImportableCredential.sshKey(_:)](authenticationservices/asimportablecredential/sshkey(_:).md)
- [ASImportableCredential.wifi(_:)](authenticationservices/asimportablecredential/wifi(_:).md)

## Relationships

### Conforms To

- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Accessing item properties

- [id](authenticationservices/asimportableitem/id.md)
- [created](authenticationservices/asimportableitem/created.md)
- [lastModified](authenticationservices/asimportableitem/lastmodified.md)
- [subtitle](authenticationservices/asimportableitem/subtitle.md)
- [credentials](authenticationservices/asimportableitem/credentials.md)
- [tags](authenticationservices/asimportableitem/tags.md)
