Set custom signals to BehavioSec signal collection
This method is called to set the BehavioSec object after integrating BehavioSec SDK at the application.
Refer to Integrating BehavioSec SDK at Host Application for more details on the integration of BehavioSec SDK.
No parameters are currently required for configuration for BehavioSec group signal collection. However, you can create an empty object and pass this to initialize() to enable signal collection.
// Setup core config, set other optional params, if required
GAHCoreConfig coreConfig = new GAHCoreConfig.Builder(this.getApplication(), FPP_URL)
.build();
// Gemalto Signal collection is mandatory.
GAHGemaltoSignalConfig signalConfig = new GAHGemaltoSignalConfig.Builder()
.build();
// Setup BehavioSec signal group config if you wish to consider BehavioSec signal group signals for risk calculation, set other optional params, if required
GAHBSecConfig behavioSecConfig = new GAHBSecConfig.Builder()
.build();
//Initialize OIP Risk Management SDK with basic and BehavioSec signal groups for risk calculation
GAHCore.initialize(coreConfig, signalConfig, behavioSecConfig);
// Setup core config, set other optional params, if required
GAHCoreConfig *coreConfig = [GAHCoreConfig sharedConfigurationWithUrl:kRiskEngineURL];
// Gemalto Signal collection is mandatory.
GAHGemaltoSignalConfig *signalConfig = [GAHGemaltoSignalConfig sharedConfiguration];
// Setup BSec signal group config if you wish to consider BehavioSec signal group signals for risk calculation
GAHBSecConfig *behavioSecConfig = [GAHBSecConfig sharedConfiguration];
//Initialize OIP Risk Management SDK with basic and BehavioSec signal groups for risk calculation
[GAHCore initialize:[NSSet setWithObjects:coreConfig, signalConfig, behavioSecConfig, nil]];
// Setup core config, set other optional params, if required
let coreConfig = GAHCoreConfig.sharedConfiguration(withUrl: riskEngineURL)!
// Gemalto Signal collection is mandatory.
let signalConfig = GAHGemaltoSignalConfig.sharedConfiguration()!
// Setup BSec signal group config if you wish to consider BehavioSec signal group signals for risk calculation
let behavioSecConfig = GAHBSecConfig.sharedConfiguration()!
//Initialize OIP Risk Management SDK with basic and BehavioSec signal groups for risk calculation
GAHCore.initialize([coreConfig, signalConfig, behavioSecConfig])
This method is called only on the screen where custom keypad/In app button is used. For screens with native keypad only, you do not have to set this value.
// Set BehavioSec object for custom key pad
GAHCore.setBehavioSecObject(mBehavioButtonTouchListener);
This method is called in all the screens at the application where BehavioSec functionality is integrated.
// If BehavioSec Object is set, then GAHBSecConfig instance should be added as configuration parameter in GAHCore.initialize, else run time error will be generated.
-(void)setupBehavioSec {
self.bSDK = [BehavioSecIOSSDK sharedIOSSDK];
self.userNameTextField.text = @"";
self.passwordTextFiled.text = @"";
[self.bSDK registerKbdTargetWithID: self.userNameTextField andName:@"FIELD_USER" isAnonymous:NO];
[self.bSDK registerKbdTargetWithID: self.passwordTextFiled andName:@"FIELD_PWD" isAnonymous:YES];
[self.bSDK addInformation:@"data from login view" withName:@"login_data" ];
[self.bSDK addInformation:@"ApplicationEAHBANK/Login" withName:@"viewIdentifier" ];
[self.bSDK startMotionDetect];
}
//set behaviosec object to OIP Risk Management
[GAHCore setBehavioObject:self.bSDK];
// If BehavioSec Object is set, then GAHBSecConfig instance should be added as configuration parameter in GAHCore.initialize, else run time error will be generated.
func setUpBehavioSec() {
self.bSDK = BehavioSecIOSSDK.shared()
self.userNameText.text = ""
self.passWordText.text = ""
self.bSDK.registerKbdTarget(withID: self.userNameText, andName: "FIELD_USER", isAnonymous: false)
self.bSDK.registerKbdTarget(withID: self.passWordText, andName: "FIELD_PWD", isAnonymous: true)
self.bSDK.addInformation("data from login view", withName: "login_data")
self.bSDK.addInformation("ApplicationEAHBANK/Login", withName: "viewIdentifier")
self.bSDK.stopMotionDetect()
}
//set behaviosec object to OIP Risk Management
GAHCore.setBehavioSecObject(bSDK)