2022-03-20 22:02:29 +00:00
|
|
|
import Foundation
|
|
|
|
import Combine
|
|
|
|
import SecretKit
|
|
|
|
|
2022-03-20 22:59:36 +00:00
|
|
|
extension ProxyAgent {
|
2022-03-20 22:02:29 +00:00
|
|
|
|
|
|
|
/// An implementation of Secret backed by a Smart Card.
|
|
|
|
public struct Secret: SecretKit.Secret {
|
|
|
|
|
|
|
|
public let id: Data
|
|
|
|
public let name: String
|
|
|
|
public let algorithm: Algorithm
|
|
|
|
public let keySize: Int
|
|
|
|
public let requiresAuthentication: Bool = false
|
|
|
|
public let publicKey: Data
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|