---
title: "init(algorithm:)"
framework: authenticationservices
role: symbol
role_heading: Initializer
path: "authenticationservices/asauthorizationpublickeycredentialparameters/init(algorithm:)"
---

# init(algorithm:)

Creates the object with an algorithm.

## Declaration

```swift
init(algorithm: ASCOSEAlgorithmIdentifier)
```

## Parameters

- `algorithm`: The algorithm to use for negitation between the authenticator and the relying party.

## See Also

### Getting the parameters

- [algorithm](authenticationservices/asauthorizationpublickeycredentialparameters/algorithm.md)
