mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
fb2abdcd1a
Converging with Android, use UnidentifiedAccess getter
31 lines
871 B
Swift
31 lines
871 B
Swift
//
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import SignalMetadataKit
|
|
|
|
@objc
|
|
public class SSKUnidentifiedAccessPair: NSObject {
|
|
public let targetUnidentifiedAccess: SSKUnidentifiedAccess
|
|
public let selfUnidentifiedAccess: SSKUnidentifiedAccess
|
|
|
|
init(targetUnidentifiedAccess: SSKUnidentifiedAccess, selfUnidentifiedAccess: SSKUnidentifiedAccess) {
|
|
self.targetUnidentifiedAccess = targetUnidentifiedAccess
|
|
self.selfUnidentifiedAccess = selfUnidentifiedAccess
|
|
}
|
|
}
|
|
|
|
@objc
|
|
public class SSKUnidentifiedAccess: NSObject {
|
|
@objc
|
|
let accessKey: SMKUDAccessKey
|
|
|
|
@objc
|
|
let senderCertificate: SMKSenderCertificate
|
|
|
|
init(accessKey: SMKUDAccessKey, senderCertificate: SMKSenderCertificate) {
|
|
self.accessKey = accessKey
|
|
self.senderCertificate = senderCertificate
|
|
}
|
|
}
|