Configuring Connected (Cloud LM)
String FEATURE_NAME = "Addition";
String CONTACT_SERVER = "sntl-cloudlm";
String HOST_ADDRESS "test_address"
String REG_TOKEN "test_token"
Attribute attrConfigure = null;
Attribute attrAppContext = null;
ApplicationContext appContext = null;
LoginSession session = null;
To request a license from RMS Cloud LM, execute the APIs in the specified sequential order only:
attrConfigure = new Attribute();
attrConfigure.set(LicensingConstants.SNTL_ATTR_CONFIG_SCP_USE_CONFIG_FILE, LicensingConstants.SNTL_ATTR_NO);
attrConfigure.set(LicensingConstants.SNTL_ATTR_CONFIG_SCP_TENANT_HOST_ADDRESS, HOST_ADDRESS);
attrConfigure.set(LicensingConstants.SNTL_ATTR_CONFIG_SCP_REGISTRATION_TOKEN, REG_TOKEN);
LicensingAPI.configure(attrConfigure);
attrAppContext = new Attribute();
attrAppContext.set(LicensingConstants.SNTL_ATTR_APPCONTEXT_CONTACT_SERVER, CONTACT_SERVER);
appContext = new ApplicationContext(attrAppContext);
session = new LoginSession();
session.login(appContext, FEATURE_NAME);