<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASImportableCredential/SSHKey",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "s:22AuthenticationServices22ASImportableCredentialO6SSHKeyV"
  },
  "title" : "ASImportableCredential.SSHKey"
}
-->

# ASImportableCredential.SSHKey

A representation of SSHKey as defined in the [Credential Exchange Format (CXF) specs](https://fidoalliance.org/specs/cx/cxf-v1.0-rd-20250313.html)

```
struct SSHKey
```

## Topics

### Initializers

[`init(keyType: String, privateKey: Data, keyComment: String?, creationDate: ASImportableEditableField?, expiryDate: ASImportableEditableField?, keyGenerationSource: ASImportableEditableField?)`](/documentation/AuthenticationServices/ASImportableCredential/SSHKey/init(keyType:privateKey:keyComment:creationDate:expiryDate:keyGenerationSource:))

### Instance Properties

[`var creationDate: ASImportableEditableField?`](/documentation/AuthenticationServices/ASImportableCredential/SSHKey/creationDate)

[`var expiryDate: ASImportableEditableField?`](/documentation/AuthenticationServices/ASImportableCredential/SSHKey/expiryDate)

[`var keyComment: String?`](/documentation/AuthenticationServices/ASImportableCredential/SSHKey/keyComment)

[`var keyGenerationSource: ASImportableEditableField?`](/documentation/AuthenticationServices/ASImportableCredential/SSHKey/keyGenerationSource)

[`var keyType: String`](/documentation/AuthenticationServices/ASImportableCredential/SSHKey/keyType)

[`var privateKey: Data`](/documentation/AuthenticationServices/ASImportableCredential/SSHKey/privateKey)

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)