EMCapFactory Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | EMCapFactory.h |
Create CAP device
– createCapDeviceWithToken:error:
Creates a Hardware or Software CAP device for the given CAP token.
- (id<EMCapDevice>)createCapDeviceWithToken:(id<EMCapToken>)token error:(NSError **)errorParameters
token |
The CAP 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 |
Return Value
The CAP device.
Availability
4.0
Discussion
If the token is soft, i.e [EMToken soft] is YES,
the default CAP settings returned via
[EMCapFactory defaultSoftCapSettings] are used, otherwise the device
settings are used.
Warning: Currently Mobile Protector SDK library only supports Software CAP device.
Declared In
EMCapFactory.h
– mutableSoftCapSettings
Returns a mutable copy of the default CAP settings used for soft tokens.
- (id<EMMutableSoftCapSettings>)mutableSoftCapSettingsReturn Value
Mutable CAP settings based on the default cap settings returned from [EMCapFactory defaultSoftCapSettings].
Availability
4.0
Declared In
EMCapFactory.h
– createSoftCapDeviceWithToken:settings:error:
Creates a Software CAP device for the given token using the given settings.
- (id<EMCapDevice>)createSoftCapDeviceWithToken:(id<EMSoftCapToken>)token settings:(id<EMSoftCapSettings>)settings error:(NSError **)errorParameters
token |
The CAP token. |
|---|---|
settings |
The CAP settings. |
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 |
Return Value
The cap device.
Availability
4.0
Discussion
This method may only be used for soft tokens, i.e [EMToken soft] is YES.
Declared In
EMCapFactory.h