VSSIdentity Class Reference

Inherits from VSSBaseModel : VSSModel : NSObject
Declared in VSSIdentity.h

Overview

Class representing the Virgil Identity.

In general instances of this class are returned by the Virgil Keys Service. The instances contain unique Id and createdAt date.

Identity is the unique (and in general public) information which belongs to user. It is associated with a particular Virgil Card, and later it is possible to search for the Virgil Card by the identity.

Each Virgil Identity has type and value (these are the most important fields).

Other Methods

  type

Type of the current identity.

@property (nonatomic, copy, readonly) NSString *type

Declared In

VSSIdentity.h

  value

String value of the identity.

@property (nonatomic, copy, readonly) NSString *value

Declared In

VSSIdentity.h

Lifecycle

– initWithId:createdAt:type:value:

Designated constructor.

- (instancetype __nonnull)initWithId:(GUID *__nonnull)Id createdAt:(NSDate *__nullable)createdAt type:(NSString *__nonnull)type value:(NSString *__nonnull)value

Parameters

Id

Unique identifier of the model.

createdAt

Date when model was created.

type

String identity type.

value

String identity value.

Return Value

Instance of the Virgil Identity.

Declared In

VSSIdentity.h

Utility

– asIdentityInfo

Converts current instance to the VSSIdentityInfo which is required by the SDK in most cases.

- (VSSIdentityInfo *__nonnull)asIdentityInfo

Return Value

Instance of VSSIdentityInfo corresponding the current instance.

Declared In

VSSIdentity.h