---
title: "init(credentialID:transports:)"
framework: authenticationservices
role: symbol
role_heading: Initializer
path: "authenticationservices/asauthorizationsecuritykeypublickeycredentialdescriptor/init(credentialid:transports:)"
---

# init(credentialID:transports:)

Creates the object with the credential ID and the array of transports.

## Declaration

```swift
init(credentialID: Data, transports allowedTransports: [ASAuthorizationSecurityKeyPublicKeyCredentialDescriptor.Transport])
```

## Parameters

- `credentialID`: The credential identifier.
- `allowedTransports`: The array of allowed transports.

## See Also

### Creating the descriptor

- [transports](authenticationservices/asauthorizationsecuritykeypublickeycredentialdescriptor/transports.md)
- [ASAuthorizationSecurityKeyPublicKeyCredentialDescriptor.Transport](authenticationservices/asauthorizationsecuritykeypublickeycredentialdescriptor/transport.md)
