2021-11-08 01:41:59 +00:00
|
|
|
import Foundation
|
|
|
|
|
2022-01-02 02:10:44 +00:00
|
|
|
/// Describes the output of a sign request.
|
2021-11-08 01:41:59 +00:00
|
|
|
public struct SignedData {
|
|
|
|
|
2022-01-02 02:10:44 +00:00
|
|
|
/// The signed data.
|
2021-11-08 01:41:59 +00:00
|
|
|
public let data: Data
|
2022-01-02 02:10:44 +00:00
|
|
|
/// A boolean describing whether authentication was required during the signature process.
|
2021-11-08 01:41:59 +00:00
|
|
|
public let requiredAuthentication: Bool
|
|
|
|
|
2022-01-02 02:10:44 +00:00
|
|
|
/// Initializes a new SignedData.
|
|
|
|
/// - Parameters:
|
|
|
|
/// - data: The signed data.
|
|
|
|
/// - requiredAuthentication: A boolean describing whether authentication was required during the signature process.
|
2021-11-08 01:41:59 +00:00
|
|
|
public init(data: Data, requiredAuthentication: Bool) {
|
|
|
|
self.data = data
|
|
|
|
self.requiredAuthentication = requiredAuthentication
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|