EMVicTokenManager Protocol Reference

Conforms to EMTokenManager
NSObject
Declared in EMVicTokenManager.h

Overview

VIC Token Manager

– tokenWithName:error: required method

Returns an existing token with the given name.

- (id<EMVicToken>)tokenWithName:(NSString *)name error:(NSError **)error

Parameters

name

The name of the token.

error

If an error occurs, upon return contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in NULL.

Return Value

The token, nil if not found or if an error occurred.

Declared In

EMVicTokenManager.h

– tokenWithName:fingerprintCustomData:error: required method

Returns an existing token with the given name and fingerprint.

- (id<EMVicToken>)tokenWithName:(NSString *)name fingerprintCustomData:(NSData *)fingerprintCustomData error:(NSError **)error

Parameters

name

The name of the token.

fingerprintCustomData

The fingerprint custom data.

error

If an error occurs, upon return contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in NULL.

Return Value

The token, nil if not found or if an error occurred.

Declared In

EMVicTokenManager.h

– createTokenWithName:provisioningConfiguration:completionHandler: required method

Starts the creation of a new token via the specified provisioning configuration. Before creating the token, integrator has to make sure there is no existing token with the same token name.

- (void)createTokenWithName:(NSString *)name provisioningConfiguration:(EMProvisioningConfiguration *)configuration completionHandler:(void ( ^ ) ( id<EMToken> token , NSError *error ))completionHandler

Parameters

name

The token name.

configuration

The provisioning configuration.

completionHandler

mandatory block to be invoked when error occurs or when token creation is completed.

Declared In

EMVicTokenManager.h

– createTokenWithName:provisioningConfiguration:deviceFingerprintTokenPolicy:completionHandler: required method

Starts the creation of a new token with the specified provisioning configuration and device fingerprint policy. Before creating the token, integrator has to make sure there is no existing token with the same token name.

- (void)createTokenWithName:(NSString *)name provisioningConfiguration:(EMProvisioningConfiguration *)configuration deviceFingerprintTokenPolicy:(EMDeviceFingerprintTokenPolicy *)deviceFingerprintTokenPolicy completionHandler:(void ( ^ ) ( id<EMToken> token , NSError *error ))completionHandler

Parameters

name

The token name.

configuration

The provisioning configuration.

deviceFingerprintTokenPolicy

device fingerprint token policy

completionHandler

mandatory block to be invoked when error occurs or when token creation is completed.

Declared In

EMVicTokenManager.h