Set custom signals to BehavioSec signal collection
This method is called to set the BehavioSec object after integrating the BehavioSec SDK at the application.
For details on the integration of the BehavioSec SDK, see integrating the BehavioSec SDK at the host application.
No parameters are required for configuring the BehavioSec group signal collection. However, you can create an empty object and pass this to initialize() to enable signal collection.
Android
// 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 Risk Management SDK with basic and BehavioSec signal groups for risk calculation
GAHCore.initialize(coreConfig, signalConfig, behavioSecConfig);
iOS - Objective C
// 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 Risk Management SDK with basic and BehavioSec signal groups for risk calculation
[GAHCore initialize:[NSSet setWithObjects:coreConfig, signalConfig, behavioSecConfig, nil]];
Swift
// 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 Risk Management SDK with basic and BehavioSec signal groups for risk calculation
GAHCore.initialize([coreConfig, signalConfig, behavioSecConfig])
Android - Java
This method is called only on the screen where a custom keypad or in-app button is used. For screens with only the native keypad, you do not have to set this value.
// Set BehavioSec object for custom key pad
GAHCore.setBehavioSecObject(mBehavioButtonTouchListener);
iOS - Objective C
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 Risk Management
[GAHCore setBehavioObject:self.bSDK];
Swift
// 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 Risk Management
GAHCore.setBehavioSecObject(bSDK)