VSSValidationTokenGenerator Class Reference
Inherits from | NSObject |
---|---|
Declared in | VSSValidationTokenGenerator.h |
Overview
Utility class for generating validation tokens.
Generated tokens might be used later to create privately confirmed Virgil Card objects.
+ validationTokenForIdentityType:value:privateKey:error:
Generates validation token for identity with given type, value and for given private key.
+ (NSString *__nullable)validationTokenForIdentityType:(NSString *__nonnull)type value:(NSString *__nonnull)value privateKey:(VSSPrivateKey *__nonnull)privateKey error:(NSError *__nullable *__nullable)error
Parameters
type |
String identity type. |
---|---|
value |
String identity value (email address, etc.) |
privateKey |
Private key container object which is used to generate the token. |
error |
NSError pointer to return error. |
Return Value
String validation token which might be used later to create privately confirmed Virgil Cards. In case of error - returns nil and NSError object through the last parameter.
Declared In
VSSValidationTokenGenerator.h
+ setValidationTokenForIdentityInfo:privateKey:error:
Generates a validation token for given identity info object and sets it as a validationToken property of the given identity info object.
+ (void)setValidationTokenForIdentityInfo:(VSSIdentityInfo *__nonnull)identityInfo privateKey:(VSSPrivateKey *__nonnull)privateKey error:(NSError *__nullable *__nullable)error
Parameters
identityInfo |
Object containing identity type and value which are used to generate the validation token. |
---|---|
privateKey |
Private key container object which is used to generate the token. |
error |
NSError pointer to return error. |
Declared In
VSSValidationTokenGenerator.h