RawCardContent
@objc(VSSRawCardContent)
public final class RawCardContent : NSObject, Codable
Represents content of Virgil Card
-
Card identity
Declaration
Swift
@objc public let identity: String -
VirgilPublicKey data
Declaration
Swift
@objc public let publicKey: Data? -
Identifier of outdated previous Virgil Card with same identity.
Declaration
Swift
@objc public let previousCardId: String? -
Version of Virgil Card
Declaration
Swift
@objc public let version: String -
UTC timestamp of creation date
Declaration
Swift
@objc public let createdAt: Int64 -
Initializes a new
RawCardContentwith the provided contentDeclaration
Swift
@objc public convenience init(identity: String, publicKey: Data, previousCardId: String? = nil, version: String = "5.0", createdAt: Date)Parameters
identityCard identity
publicKeyVirgilPublicKey data
previousCardIdIdentifier of previous Virgil Card with same identity
versionVirgil Card version
createdAtDate of creation
-
Initializes a new
RawCardContentwith the provided contentDeclaration
Swift
@objc public init(identity: String, publicKey: Data?, previousCardId: String? = nil, version: String = "5.0", createdAtTimestamp: Int64)Parameters
identityCard identity
publicKeyVirgilPublicKey data
previousCardIdIdentifier of previous Virgil Card with same identity
versionVirgil Card version
createdAtTimestampTimestamp of creation
-
Initializes
RawCardContentfrom binary content snapshotThrows
Rethrows fromJSONDecoderDeclaration
Swift
@objc public convenience init(snapshot: Data) throwsParameters
snapshotBinary snapshot of
RawCardContent -
Takes binary snapshot of
RawCardContentThrows
Rethrows fromJSONEncoderDeclaration
Swift
@objc public func snapshot() throws -> DataReturn Value
Binary snapshot of
RawCardContent
RawCardContent Class Reference