VSSIdentityInfo Class Reference
Inherits from | VSSModel : NSObject |
---|---|
Declared in | VSSIdentityInfo.h |
Overview
Helper class which represents identity that is not created yet by the Virgil Service. It does not contain any kind of unique model ID, but only type and value. Might also contain a validation token. Identity info is used by the SDK in some calls to services.
Other Methods
value
String value of the identity.
@property (nonatomic, copy) NSString *value
Declared In
VSSIdentityInfo.h
validationToken
Validation token returned by the Virgil Identity Service. May be nil.
@property (nonatomic, copy) NSString *validationToken
Declared In
VSSIdentityInfo.h
Lifecycle
– initWithType:value:validationToken:
Designated constructor.
- (instancetype __nonnull)initWithType:(NSString *__nonnull)type value:(NSString *__nonnull)value validationToken:(NSString *__nullable)validationToken
Parameters
type |
String identity type. |
---|---|
value |
String identity value. |
validationToken |
Virgil validation token or nil. |
Return Value
Instance of the Identity Info.
Declared In
VSSIdentityInfo.h
Utility
– asDictionary
Converts identity info instance into the NSDictionary. Resulting dictionary will have keys kVSSModelType and kVSSModelValue. In case when validationToken property is not nil - the dictionary will also contain kVSSModelValidationToken key.
- (NSDictionary *__nonnull)asDictionary
Return Value
Dictionary representation of the current identity info.
Declared In
VSSIdentityInfo.h