JwtBodyContent
@objc(VSSJwtBodyContent)
public class JwtBodyContent : NSObject
Class representing JWT Body content
-
Issuer containing application id
Note
Can be taken hereDeclaration
Swift
@objc public var appId: String { get }
-
Subject as identity
Declaration
Swift
@objc public var identity: String { get }
-
Timestamp in seconds with expiration date
Declaration
Swift
@objc public var expiresAt: Date { get }
-
Timestamp in seconds with issued date
Declaration
Swift
@objc public var issuedAt: Date { get }
-
Dictionary with additional data
Declaration
Swift
@objc public var additionalData: [String : String]? { get }
-
String representation
Declaration
Swift
@objc public let stringRepresentation: String
-
Initializer
Throws
Rethrows fromJSONEncoder
Declaration
Swift
@objc public init(appId: String, identity: String, expiresAt: Date, issuedAt: Date, additionalData: [String: String]? = nil) throws
Parameters
appId
Issuer containing application id. Can be taken here
identity
identity (must be equal to RawSignedModel identity when publishing card)
expiresAt
expiration date
issuedAt
issued date
additionalData
dictionary with additional data
-
Imports JwtBodyContent from base64Url encoded string
Throws
JwtBodyContentError.base64UrlStrIsInvalid
If given base64 string is invalid- Rethrows from
JSONDencoder
Declaration
Swift
@objc public init(base64UrlEncoded: String) throws
Parameters
base64UrlEncoded
base64Url encoded string with JwtBodyContent