EMFastTrack
Objective-C
@interface EMFastTrack : NSObject
Swift
class EMFastTrack : NSObject
FastTrack is the entry-point of the Mobile Protector and Mobile Secure Messenger. FastTrack takes the configurations needed for different modules and provides shared SDK functionality.
- - Since: 5.3
-
Get
EMFastTrackinstance. This function can be called after callingEMFastTrack configureWithOptionalParameters:param1otherwise will throwNSInternalInconsistencyException.Declaration
Objective-C
+ (nullable instancetype)sharedInstance;Swift
class func sharedInstance() -> Self?Return Value
EMFastTrackinstance. -
Configure the secure log. Pass config = nil if you want to disable the logging. This functions should be called before configuring the IDPFastTrack SDK and can only be called once.
Since
6.0Declaration
Objective-C
+ (nullable id<SecureLog>)configureSecureLog:(nullable SecureLogConfig *)config;Swift
class func configureSecureLog(config: SecureLogConfig?) -> (any SecureLog)?Parameters
configconsist of public key and setting of SecureLog
Return Value
id
the instance of SecureLog - use to interact with SecureLog feature. Throw NSGenericException if the function is called more than once. -
Configure the FastTrack.
Declaration
Objective-C
+ (nonnull instancetype)configureWithOptionalParameters: (nullable void (^)(EMFastTrackOptionalParameters *_Nonnull)) optionalParameters;Swift
class func configure(optionalParameters: ((EMFastTrackOptionalParameters) -> Void)? = nil) -> SelfParameters
optionalParametersThe optional parameters, - see:
EMFastTrackOptionalParameters.Return Value
Return an instance of
EMFastTrack. -
Representation of the physical device’s jailbreak status
Declaration
Objective-C
+ (BOOL)isJailbroken;Swift
class func isJailbroken() -> BoolReturn Value
YESif the device is jailbroken otherwiseNO -
Get the state if FastTrack has been configured previously.
Declaration
Objective-C
+ (BOOL)isConfigured;Swift
class func isConfigured() -> BoolReturn Value
true if it has been configured, false otherwise
-
-oathMobileProtectorWithUrl:domain: provisioningProtocol: rsaKeyId: rsaExponent: rsaModulus: optionalParameters: Construct an
EMOathMobileProtectorobject.Declaration
Objective-C
- (nonnull EMOathMobileProtector *) oathMobileProtectorWithUrl:(nonnull NSURL *)url domain:(nullable NSString *)domain provisioningProtocol: (EMFastTrackProvisioningProtocol)provisioningProtocol rsaKeyId:(nonnull NSString *)rsaKeyId rsaExponent:(nonnull NSData *)rsaExponent rsaModulus:(nonnull NSData *)rsaModulus optionalParameters: (nullable void (^)(EMMobileProtectorOptionalParameters *_Nonnull))optionalParameters;Swift
func oathMobileProtector(url: URL, domain: String?, provisioningProtocol: EMFastTrackProvisioningProtocol, rsaKeyId: String, rsaExponent: Data, rsaModulus: Data, optionalParameters: ((EMMobileProtectorOptionalParameters) -> Void)? = nil) -> EMOathMobileProtectorParameters
urlThe URL of the provisioning API endpoint, e.g: for EPS 2.x:
http(s)://<eps-url>:<eps-port>/provisioner/api/provisioning/ppand for EPS 3.x:http(s)://<eps-url>:<eps-port>/provisioner/provisiondomainThe eps domain for provisioning.
provisioningProtocolA mobile provisioning protocol.
rsaKeyIdIdentifier for the EPS server’s public RSA key. The value can be nil for EPS 3.x and above and EMFastTrackProvisioningProtocol is version 5.
rsaExponentThe RSA exponent of the EPS public key (on provisioning protocol level, not transport level).
rsaModulusThe RSA modulus of the EPS public key (on provisioning protocol level, not transport level).
optionalParametersAn optional parameters to be set, - see:
EMFastTrackOptionalParameters.Return Value
Return an instance of
EMOathMobileProtector. -
-capMobileProtectorWithUrl:domain: provisioningProtocol: rsaKeyId: rsaExponent: rsaModulus: optionalParameters: Construct an
EMCapMobileProtectorobject.Declaration
Objective-C
- (nonnull EMCapMobileProtector *) capMobileProtectorWithUrl:(nonnull NSURL *)url domain:(nullable NSString *)domain provisioningProtocol: (EMFastTrackProvisioningProtocol)provisioningProtocol rsaKeyId:(nonnull NSString *)rsaKeyId rsaExponent:(nonnull NSData *)rsaExponent rsaModulus:(nonnull NSData *)rsaModulus optionalParameters: (nullable void (^)(EMMobileProtectorOptionalParameters *_Nonnull))optionalParameters;Swift
func capMobileProtector(url: URL, domain: String?, provisioningProtocol: EMFastTrackProvisioningProtocol, rsaKeyId: String, rsaExponent: Data, rsaModulus: Data, optionalParameters: ((EMMobileProtectorOptionalParameters) -> Void)? = nil) -> EMCapMobileProtectorParameters
urlThe URL of the provisioning API endpoint, e.g: for EPS 2.x:
http(s)://<eps-url>:<eps-port>/provisioner/api/provisioning/ppand for EPS 3.x:http(s)://<eps-url>:<eps-port>/provisioner/provisiondomainThe eps domain for provisioning.
provisioningProtocolA mobile provisioning protocol.
rsaKeyIdIdentifier for the EPS server’s public RSA key. The value can be nil for EPS 3.x and above and EMFastTrackProvisioningProtocol is version 5.
rsaExponentThe RSA exponent of the EPS public key (on provisioning protocol level, not transport level).
rsaModulusThe RSA modulus of the EPS public key (on provisioning protocol level, not transport level).
optionalParametersAn optional parameters to be set, - see:
EMFastTrackOptionalParameters.Return Value
Return an instance of
EMCapMobileProtector. -
Construct an
EMMobileMessengerobject.Declaration
Objective-C
- (nullable EMMobileMessenger *) mobileMessengerWithUrl:(nonnull NSURL *)url domain:(nonnull NSString *)domain applicationId:(nonnull NSString *)applicationId rsaExponent:(nonnull NSData *)rsaExponent rsaModulus:(nonnull NSData *)rsaModulus optionalParameters: (nullable void (^)(EMMobileMessengerOptionalParameters *_Nonnull)) optionalParameters error:(NSError *_Nullable *_Nullable)error;Swift
func mobileMessenger(url: URL, domain: String, applicationId: String, rsaExponent: Data, rsaModulus: Data, optionalParameters: ((EMMobileMessengerOptionalParameters) -> Void)? = nil) throws -> EMMobileMessengerParameters
urlThe URL of the OOB server.
domainThe domain to use for requests to the OOB server. It must be compliant with server configuration on back-end side.
applicationIdThe application identifier use to communicate with the OOB server.
rsaExponentThe RSA public exponent to use to communicate with the OOB server.
rsaModulusThe RSA modules to use to communicate with the OOB server.
optionalParametersAn optional parameters to be set, - see:
EMMobileMessengerOptionalParameters.errorIf an error occurs, upon return contains an
NSErrorobject that describes the problem.Return Value
Return an instance of
EMMobileMessengerornil. -
The version of the SDK.
Declaration
Objective-C
+ (nonnull NSString *)version;Swift
class func version() -> StringReturn Value
Version of the SDK.
EMFastTrack Class Reference