EMOathTokenManager
Objective-C
@protocol EMOathTokenManager <NSObject, EMTokenManager>
Swift
protocol EMOathTokenManager : EMTokenManager
OATH Token Manager
-
Returns an existing token with the given name.
Declaration
Objective-C
- (id<EMOathToken>)tokenWithName:(NSString *)name error:(NSError **)error;Swift
func token(withName name: String!) throws -> any EMOathTokenParameters
nameThe name of the token.
errorIf 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,
nilif not found or if an error occurred. -
Returns an existing token with the given name and fingerprint.
Declaration
Objective-C
- (id<EMOathToken>)tokenWithName:(NSString *)name fingerprintCustomData:(NSData *)fingerprintCustomData error:(NSError **)error;Swift
func token(withName name: String!, fingerprintCustomData: Data!) throws -> any EMOathTokenParameters
nameThe name of the token.
fingerprintCustomDataThe fingerprint custom data.
errorIf 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,
nilif not found or if an error occurred. -
Returns an existing token with the given UTI (user token id).
Since
4.5
Declaration
Objective-C
- (id<EMOathToken>)tokenWithUti:(long)uti error:(NSError **)error;Swift
func token(withUti uti: Int) throws -> any EMOathTokenParameters
utiThe UTI of the token.
errorIf 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,
nilif not found or if an error occurred. -
Returns an existing token with the given UTI (user token id) and fingerprint.
Since
4.5
Declaration
Objective-C
- (id<EMOathToken>)tokenWithUti:(long)uti fingerprintCustomData:(NSData *)fingerprintCustomData error:(NSError **)error;Swift
func token(withUti uti: Int, fingerprintCustomData: Data!) throws -> any EMOathTokenParameters
utiThe UTI of the token.
fingerprintCustomDataThe fingerprint custom data.
errorIf 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,
nilif not found or if an error occurred. -
Starts the creation of a new token with the specified token name and the provisioning configuration. Before creating the token, integrator has to make sure there is no existing token with the same token name.
Warning
This API does not support Mobile Provisioning Protocol version 5.Declaration
Objective-C
- (void)createTokenWithName:(NSString *)name provisioningConfiguration:(EMProvisioningConfiguration *)configuration completionHandler: (void (^)(id<EMOathToken>, NSError *))completionHandler;Swift
func createToken(withName name: String!, provisioningConfiguration configuration: EMProvisioningConfiguration!) async throws -> (any EMOathToken)?Parameters
nameThe token name.
configurationThe provisioning configuration.
completionHandlermandatory block to be invoked when error occurs or when token creation is completed.
-
Starts the creation of a new token with the specified token name, 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.
Warning
This API does not support Mobile Provisioning Protocol version 5.Declaration
Objective-C
- (void)createTokenWithName:(NSString *)name provisioningConfiguration:(EMProvisioningConfiguration *)configuration deviceFingerprintTokenPolicy: (EMDeviceFingerprintTokenPolicy *)deviceFingerprintTokenPolicy completionHandler: (void (^)(id<EMOathToken>, NSError *))completionHandler;Swift
func createToken(withName name: String!, provisioningConfiguration configuration: EMProvisioningConfiguration!, deviceFingerprintTokenPolicy: EMDeviceFingerprintTokenPolicy!) async throws -> (any EMOathToken)?Parameters
nameThe token name.
configurationThe provisioning configuration.
deviceFingerprintTokenPolicydevice fingerprint token policy
completionHandlermandatory block to be invoked when error occurs or when token creation is completed.
-
-createTokenWithName:provisioningConfiguration: deviceFingerprintTokenPolicy: capability: completionHandler: Starts the creation of a new token with the specified token name, provisioning configuration, device fingerprint policy, and token capability. Before creating the token, integrator has to make sure there is no existing token with the same token name.
Warning
This API does not support Mobile Provisioning Protocol version 5.Declaration
Objective-C
- (void)createTokenWithName:(NSString *)name provisioningConfiguration:(EMProvisioningConfiguration *)configuration deviceFingerprintTokenPolicy: (EMDeviceFingerprintTokenPolicy *)deviceFingerprintTokenPolicy capability:(EMTokenCapability)capability completionHandler: (void (^)(id<EMOathToken>, NSError *))completionHandler;Swift
func createToken(withName name: String!, provisioningConfiguration configuration: EMProvisioningConfiguration!, deviceFingerprintTokenPolicy: EMDeviceFingerprintTokenPolicy!, capability: EMTokenCapability) async throws -> (any EMOathToken)?Parameters
nameThe token name.
configurationThe provisioning configuration.
deviceFingerprintTokenPolicydevice fingerprint token policy
capabilityThe token capability (OTP computation, dual seed…). See EMTokenCapability.
completionHandlermandatory block to be invoked when error occurs or when token creation is completed.
-
Starts the creation of a new token with the specified token name, provisioning configuration and the token capability. Before creating the token, integrator has to make sure there is no existing token with the same token name.
Warning
This API does not support Mobile Provisioning Protocol version 5.Declaration
Objective-C
- (void)createTokenWithName:(NSString *)name provisioningConfiguration:(EMProvisioningConfiguration *)configuration capability:(EMTokenCapability)capability completionHandler: (void (^)(id<EMOathToken>, NSError *))completionHandler;Swift
func createToken(withName name: String!, provisioningConfiguration configuration: EMProvisioningConfiguration!, capability: EMTokenCapability) async throws -> (any EMOathToken)?Parameters
nameThe token name.
configurationThe provisioning configuration.
capabilityThe token capability (OTP computation, dual seed…). See EMTokenCapability.
completionHandlermandatory block to be invoked when error occurs or when token creation is completed.
-
-createTokenWithName:provisioningConfiguration: deviceFingerprintTokenPolicy: extendedCompletionHandler: Starts the creation of a new token with the specified token name, 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. This API support Mobile Provisioning Protocol version 5 which will allows extensions to provide additional information set by the server, if any.
Since
5.0
Declaration
Objective-C
- (void)createTokenWithName:(NSString *)name provisioningConfiguration:(EMProvisioningConfiguration *)configuration deviceFingerprintTokenPolicy: (EMDeviceFingerprintTokenPolicy *)deviceFingerprintTokenPolicy extendedCompletionHandler:(void (^)(id<EMOathToken>, NSDictionary *, NSError *))completionHandler;Swift
func createToken(withName name: String!, provisioningConfiguration configuration: EMProvisioningConfiguration!, deviceFingerprintTokenPolicy: EMDeviceFingerprintTokenPolicy!) async throws -> ((any EMOathToken)?, [AnyHashable : Any]?)Parameters
nameThe token name.
configurationThe provisioning configuration.
deviceFingerprintTokenPolicydevice fingerprint token policy
completionHandlermandatory block to be invoked when error occurs or when token creation is completed. Specific for Mobile Provisioning Protocol version 5, this handler will contains extensions information for any string extension of “client.app.*”
-
-createTokenWithName:provisioningConfiguration: deviceFingerprintTokenPolicy: capability: extendedCompletionHandler: Starts the creation of a new token with the specified token name, 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. This API support Mobile Provisioning Protocol version 5 which will allows extensions to provide additional information set by the server, if any.
Since
5.0
Declaration
Objective-C
- (void)createTokenWithName:(NSString *)name provisioningConfiguration:(EMProvisioningConfiguration *)configuration deviceFingerprintTokenPolicy: (EMDeviceFingerprintTokenPolicy *)deviceFingerprintTokenPolicy capability:(EMTokenCapability)capability extendedCompletionHandler:(void (^)(id<EMOathToken>, NSDictionary *, NSError *))completionHandler;Swift
func createToken(withName name: String!, provisioningConfiguration configuration: EMProvisioningConfiguration!, deviceFingerprintTokenPolicy: EMDeviceFingerprintTokenPolicy!, capability: EMTokenCapability) async throws -> ((any EMOathToken)?, [AnyHashable : Any]?)Parameters
nameThe token name.
configurationThe provisioning configuration.
deviceFingerprintTokenPolicydevice fingerprint token policy
capabilityThe token capability (OTP computation, dual seed…). See EMTokenCapability.
completionHandlermandatory block to be invoked when error occurs or when token creation is completed. Specific for Mobile Provisioning Protocol version 5, this handler will contains extensions information for any string extension of “client.app.*”
-
To Creates a LowPlatformCoupling Token which is not affected by the changes in DeviceFingerprint.
A LowPlatformCoupling Token only permits PIN mode. [token upgradeToMultiAuthMode:input error:error] call is not allowed. Since
5.2.0
Declaration
Objective-C
- (void) createLowPlatformCouplingToken:(NSString *)name provisioningConfiguration:(EMProvisioningConfiguration *)configuration extendedCompletionHandler:(void (^)(id<EMOathToken>, NSDictionary *, NSError *))completionHandler;Swift
func createLowPlatformCouplingToken(_ name: String!, provisioningConfiguration configuration: EMProvisioningConfiguration!) async throws -> ((any EMOathToken)?, [AnyHashable : Any]?)Parameters
nameThe token name.
configurationThe provisioning configuration.
completionHandlermandatory block to be invoked when error occurs or when token creation is completed. Specific for Mobile Provisioning Protocol version 5, this handler will contains extensions information for any string extension of “client.app.*”
-
Get capabilities of token with given name.
@exception EMCredentialDoesNotExistException When the token does not exist @exception NSInternalInconsistencyException When an unexpected error occurs while reading the token from the DB
Since
4.0Declaration
Objective-C
- (EMEnumSet *)tokenCapabilitiesWithName:(NSString *)name error:(NSError **)error;Swift
func tokenCapabilities(withName name: String!) throws -> EMEnumSetParameters
nameThe name of the token. Returns the capabilities of an existing token.
errorIf 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 collection of token capabilities. See EMTokenCapability
EMOathTokenManager Protocol Reference