![]() |
Zentitle SDK and Library
|
Public Member Functions | |
NSL (NALP nalp, int oset) | |
void | NSLSetLicNo (String licNo) |
String | NSLGetLicNo () |
String | callNSLGetVersion () throws nalpError |
Gets the vewrsion of the NSL library being accessed. See NSLGetVersion() More... | |
String | callNSLGetComputerID () throws nalpError |
Gets the computer ID of the current system. See NSLGetComputerID(). More... | |
String | callNSLGetHostName () throws nalpError |
Get the name or IP address of the Nalpeiron server or daemon used for licensing. See NSLGetHostName(). More... | |
int | callNSLGetLeaseExpSec () throws nalpError |
Get the lease expiration time in seconds. See NSLGetLeaseExpSec(). More... | |
String | callNSLGetLeaseExpDate () throws nalpError |
Get the lease expiration date. See NSLGetLeaseExpDate(). More... | |
int | callNSLGetRefreshExpSec () throws nalpError |
Get remaining seconds until refresh. Available only on certain platforms. More... | |
String | callNSLGetRefreshExpDate () throws nalpError |
Get the refresh date. Available only on certain platforms. More... | |
int | callNSLGetSubExpSec () throws nalpError |
Get the seconds remaining in the subscription period. See NSLGetSubExpSec(). More... | |
String | callNSLGetSubExpDate () throws nalpError |
Get the end date of the subscription period. See NSLGetSubExpDate(). More... | |
int | callNSLGetMaintExpSec () throws nalpError |
Get the number of seconds remaining in the maintanence period. See NSLGetMaintExpSec(). More... | |
String | callNSLGetMaintExpDate () throws nalpError |
Get the expiration date of the maintanence period. See NSLGetMaintExpDate(). More... | |
int | callNSLGetTrialExpSec () throws nalpError |
Get the number of seconds remaining in the trial period. See NSLGetTrialExpSec(). More... | |
String | callNSLGetTrialExpDate () throws nalpError |
Get the date of the trial expiration. See NSLGetTrialExpDate(). More... | |
int | callNSLGetLicense (String licenseNo, String xmlRegInfo) throws nalpError |
Contacts the SOAP server for a new license or a license refresh. See NSLGetLicense() More... | |
int | callNSLObtainLicense (String licenseNo, String xmlRegInfo, String specialID) throws nalpError |
Contacts the SOAP server for a new license or a license refresh. See NSLObtainLicense() More... | |
int | callNSLReturnLicense (String licenseNo) throws nalpError |
Returns the current license to the Nalpeiron server. See NSLReturnLicense(). More... | |
int | callNSLImportCertificate (String licenseNo, String cert) throws nalpError |
Imports a license from the given certificate. See NSLImportCertificate(). More... | |
String | callNSLGetActivationCertReq (String licenseNo, String xmlRegInfo) throws nalpError |
Generate an request for a activation certificate from the Nalpeiron server (ie offline activation). The resulting request can be emailed or otherwise sent to Nalpeiron. See NSLGetActivationCertReq(). More... | |
String | callNSLRequestActivationCert (String licenseNo, String xmlRegInfo, String specialID) throws nalpError |
Generate an request for a activation certificate from the Nalpeiron server (ie offline activation). The resulting request can be emailed or otherwise sent to Nalpeiron. See NSLRequestActivationCert (/ref NSLRequestActivationCert). More... | |
String | callNSLGetDeactivationCertReq (String licenseNo) throws nalpError |
Generate a request for a deactivation certificate from the Nalpeiron server (ie offline deactivation). The resulting request can be emailed or otherwise sent to Nalpeiron. See NSLGetDeactivationCertReq(). More... | |
int | callNSLValidateLibrary (int custID, int prodID) throws nalpError |
Verifies that the shared library you are accessing is the library you stamped at Nalpeiron's website. It does this by checking the customerID and productID sent in against the stamped values. See NSLValidateLibrary(). Any negative return value, even if it is not a known error code, is cause to consider the library invalid. More... | |
int | callNSLGetLicenseStatus () throws nalpError |
Retrieves the status of the current license. Negative values indicate an invalid license state. See NSLGetLicenseStatus(). More... | |
int | callNSLGetLicenseType () throws nalpError |
Retrieves the license type for the current license. See NSLGetLicenseInfo(). More... | |
long | callNSLGetLibraryOptions () throws nalpError |
Retrieves the library stamp options for the current library. See NSLGetLibraryOptions(). More... | |
String | callNSLGetVMInfo () throws nalpError |
Retrieves virtual machine information for the system. See NSLGetVMInfo(). More... | |
int | callNSLGetActivationType () throws nalpError |
Retrieves the activation type for the current license. See NSLGetLicenseInfo(). More... | |
int | callNSLGetMaxProcs () throws nalpError |
If the number of concurrent processes was limited when the system's license was created, this function will return the maximum number of allowed processes. More... | |
int | callNSLGetAvailProcs () throws nalpError |
If the number of concurrent processes was limited when the system's license was created, this function will return the number of allowed processes still remaining for use. More... | |
String | callNSLGetLicenseCode () throws nalpError |
Retrieves the license code used with the current license. NOTE: a license code will only be present if one has already been assigned to the current license via NSLGetLicense, NSLImportCert, etc. See NSLGetLicenseCode(). More... | |
int | callNSLGetTimeStamp () throws nalpError |
Retrieves the current time (seconds since epoch start) from the Nalpeiron daemon or server. See NSLGetTimeStamp(). More... | |
int | callNSLGetFeatureStatus (String featureName) throws nalpError |
Checks the current license for the status of featureName. See NSLGetFeatureStatus(). More... | |
int | callNSLCheckoutFeature (String featureName, String licenseNo) throws nalpError |
Checkout one use of a "floating feature" from the Nalpeiron server or daemon. On return featureStatus will contain the feature status code. In addition to checking the return value of the function, the feature status code must also be checked to ensure a feature seat was available. See NSLCheckoutFeature(). More... | |
int | callNSLReturnFeature (String featureName, String licenseNo) throws nalpError |
Return one use of a "floating feature" to the Nalpeiron server or daemon. See NSLReturnFeature(). More... | |
int | callNSLGetPoolStatus (String poolName) throws nalpError |
Get the number of pool elements checked out from the named pool. See NSLGetPoolStatus(). More... | |
int | callNSLGetPoolInfo (String poolName) throws nalpError |
Get the number of pool elements checked out from the named pool. See NSLGetPoolInfo(). More... | |
int | callNSLGetPoolMax (String poolName) throws nalpError |
Get the number of pool elements in the named pool. See NSLGetPoolMax(). More... | |
int | callNSLCheckoutPool (String poolName, String licenseNo, int amt) throws nalpError |
Withdraws a specified number of elements from an element pool. See NSLCheckoutPool(). More... | |
int | callNSLReturnPool (String poolName, String licenseNo, int amt) throws nalpError |
Returns a specified number of elements to an element pool. See NSLReturnPool(). More... | |
int | callNSLGetTokenInfo (String tokenName) throws nalpError |
Get information about tokens checked out from the named pool. See NSLGetTokenInfo(). More... | |
int | callNSLCheckoutTokens (String tokenName, String licenseNo, int amt) throws nalpError |
Withdraws a specified number of tokens from an token pool. See NSLCheckoutTokens(). More... | |
int | callNSLConsumeTokens (String tokenName, String licenseNo, int amt) throws nalpError |
Consumes the specified number of tokens from an tokens checkedout by NSLCheckoutTokens onto local machine. More... | |
int | callNSLReturnTokens (String tokenName, String licenseNo, int amt) throws nalpError |
Returns the specified number of tokens from the local machine to the Nalpeiron server. More... | |
String | callNSLGetUDFValue (String UDFName) throws nalpError |
Retrieve the value of a UDF (AA). See callNSLGetUDFValue(). More... | |
String | callNSLReadSecStore (String rawkey, String storename) throws nalpError |
Retrieve the value of a Secure Store. See callNSLReadSecStore(). More... | |
int | callNSLWriteSecStore (String rawkey, String storename, String secstorevalue) throws nalpError |
Write the value to a Secure Store. See callNSLWriteSecStore(). More... | |
String | callNSLRemoteCallV (String rpcName, String[] varNames, String[] varValues) throws nalpError |
Call a remote proceedure on the Nalpeiron server. More... | |
int | callNSLRegister (String licenseNo, String xmlRegInfo) throws nalpError |
: Call registration function. Available only on certain platforms. More... | |
int | callNSLTestConnection () throws nalpError |
: Tests the network connection to Nalpeiron. See NSLTestConnection(). More... | |
int | callNSLTestConnection2 (long connTO, long transTO) throws nalpError |
: Tests the network connection to Nalpeiron. See NSLTestConnection2(). More... | |
int | callNSLSetCredentials (String classname, String methname, String username, String password, String inData) throws nalpError |
Set username and password for future logins to the Nalpeiron licensing server or for a user provided authentication callback function. More... | |
int | callNSLSetCredentialsSSO (String ssoToken, String inData) throws nalpError |
This function mirrors the functionality of NSLSetCredentials but uses a JWT (JSON Web Token) to gather the needed authentication information. More... | |
int | callNSLCheckCredentials () throws nalpError |
Validate credentials passed into the library with NSLSetCredentials against any stored in the license file. When a program with an ABL license has been shutdown without a ReturnLicense or a ClearCredentials the credentials are cached in the license file. Once the library is restarted before the license file's entitlements can be accessed those credentials must be verified. This state is indicated by a -70 license status. The verification is done using this call. More... | |
int | callNSLGetCredentials (String[] creds) throws nalpError |
Get information from the last SetCredentials (or callback) call. More... | |
int | callNSLClearCredentials () throws nalpError |
: Clear credentials set for use with Nalpeiron server and named license More... | |
String | callNSLGetNewLicenseCode (String profile) throws nalpError |
: Call to get a new license. Available only on certain platforms. More... | |
String | callNSLGetPreset (int messageNo) throws nalpError |
: Call to get a preset messages. Available only on certain platforms. More... | |
ArrayList< String > | callNSLGetMsgByDate () throws nalpError |
: Call to get a current messages. Available only on certain platforms. More... | |
|
inline |
|
inline |
Validate credentials passed into the library with NSLSetCredentials against any stored in the license file. When a program with an ABL license has been shutdown without a ReturnLicense or a ClearCredentials the credentials are cached in the license file. Once the library is restarted before the license file's entitlements can be accessed those credentials must be verified. This state is indicated by a -70 license status. The verification is done using this call.
If the cached credentials are a username/password combination that was initially validated by the Nalpeiron server then the username and password passed to NSLSetCredentials will be validated against those stored in the license file. NOTE the password is never stored or transmitted in plain text.
If the cached credentials were initially verified by a callback function then that callback will be called to verify the password and username passed to NSLSetCredentials.
If the cache credentials were initially verified by a callback with authentication token then that token will need to be passed back to the library from the callback function. The username and token will be verified against those stored in the license file.
|
inline |
Checkout one use of a "floating feature" from the Nalpeiron server or daemon. On return featureStatus will contain the feature status code. In addition to checking the return value of the function, the feature status code must also be checked to ensure a feature seat was available. See NSLCheckoutFeature().
featureName | a string containing the five (5) character feature code of the feature to be checked out. |
licenseNo | the license number of the current, valid system license |
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Withdraws a specified number of elements from an element pool. See NSLCheckoutPool().
poolName | a string containing the five (5) character pool code of the pool to be withdrawn from. |
licenseNo | the license number of the current, valid system license |
amt | the number of elements to withdraw from the pool |
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Withdraws a specified number of tokens from an token pool. See NSLCheckoutTokens().
tokenName | a string containing the five (5) character code of the token pool to be withdrawn from. |
licenseNo | the license number of the current, valid system license |
amt | the number of elements to withdraw from the pool |
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
: Clear credentials set for use with Nalpeiron server and named license
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Consumes the specified number of tokens from an tokens checkedout by NSLCheckoutTokens onto local machine.
tokenName | a string containing the five (5) character code of the token pool to be consumed from. |
licenseNo | the license number of the current, valid system license |
amt | the number of elements to consume. |
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Generate an request for a activation certificate from the Nalpeiron server (ie offline activation). The resulting request can be emailed or otherwise sent to Nalpeiron. See NSLGetActivationCertReq().
licenseNo | the license number to be used in creating the certificate request. If the licenseNo is NULL, an attempt for a trial license certificate will be made. |
xmlRegInfo | Optional registration information may be passed to the Nalpeiron server using the xmlRegInfo string. If there is no registration information, this pointer should be NULL. |
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Retrieves the activation type for the current license. See NSLGetLicenseInfo().
nalpError | If there was a problem calling the NSLfunction, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
If the number of concurrent processes was limited when the system's license was created, this function will return the number of allowed processes still remaining for use.
A license may limit the number of simultaneous copies allowed to run on a specific computer. This limit is disabled by default and, if desired, must be enabled on the Nalpeiron server. The number of copies available is set to noProcs+1 and availProc is the number of copies still available for use. When an application instance is started and returns availProc=0, the number of instances exceeds the maximum allowed and this instance should be terminated.
When disabled, this fuction will always return zero (0) as noProcs and one (1) as the number of availProc. NOTE limiting the number of processes allowed on a machine ("Number of concurrent Processes" setting on server) is not affected by the "Concurrency Mode" setting. See NSLGetNumbAvailProc()
nalpError | If there was a problem calling the NSLfunction, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Gets the computer ID of the current system. See NSLGetComputerID().
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Get information from the last SetCredentials (or callback) call.
creds | An array of strings that return the following values in order |
lastRet a pointer to a 64 bit signed integer that will contain the last return value from a callback provided to NSLSetCredentials.
username contains the last username set with NSLSetCredentials. username must be cleared with a call to NSLFree.
inData the last data sent to the callback. inData must be cleared with a call to NSLFree.
outData the last data received from the callback. outData must be cleared with a call to NSLFree.
|
inline |
Generate a request for a deactivation certificate from the Nalpeiron server (ie offline deactivation). The resulting request can be emailed or otherwise sent to Nalpeiron. See NSLGetDeactivationCertReq().
licenseNo | the license number used to obtain the license. |
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Checks the current license for the status of featureName. See NSLGetFeatureStatus().
featureName | a string containing the five (5) character feature code of the feature to be checked out. |
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Get the name or IP address of the Nalpeiron server or daemon used for licensing. See NSLGetHostName().
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Get the lease expiration date. See NSLGetLeaseExpDate().
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Get the lease expiration time in seconds. See NSLGetLeaseExpSec().
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Retrieves the library stamp options for the current library. See NSLGetLibraryOptions().
nalpError | If there was a problem calling the NSLfunction, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Contacts the SOAP server for a new license or a license refresh. See NSLGetLicense()
licenseNo | If licenseNo is non-NULL that number is used in the attempt to retrieve a license. If the licenseNo is NULL, the function attempts to retrieve a trial license. |
xmlRegInfo | Optional registration information may be passed to the Nalpeiron server using the xmlRegInfo string. If there is no registration information, this pointer should be NULL. |
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Retrieves the license code used with the current license. NOTE: a license code will only be present if one has already been assigned to the current license via NSLGetLicense, NSLImportCert, etc. See NSLGetLicenseCode().
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Retrieves the status of the current license. Negative values indicate an invalid license state. See NSLGetLicenseStatus().
nalpError | If there was a problem calling the NSLfunction, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Retrieves the license type for the current license. See NSLGetLicenseInfo().
nalpError | If there was a problem calling the NSLfunction, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Get the expiration date of the maintanence period. See NSLGetMaintExpDate().
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Get the number of seconds remaining in the maintanence period. See NSLGetMaintExpSec().
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
If the number of concurrent processes was limited when the system's license was created, this function will return the maximum number of allowed processes.
A license may limit the number of simultaneous copies allowed to run on a specific computer. This limit is disabled by default and, if desired, must be enabled on the Nalpeiron server. The number of copies available is set to noProcs+1 and availProc is the number of copies still available for use. When an application instance is started and returns availProc=0, the number of instances exceeds the maximum allowed and this instance should be terminated.
When disabled, this fuction will always return zero (0) as noProcs and one (1) as the number of availProc. NOTE limiting the number of processes allowed on a machine ("Number of concurrent Processes" setting on server) is not affected by the "Concurrency Mode" setting. See NSLGetNumbAvailProc()
nalpError | If there was a problem calling the NSLfunction, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
: Call to get a current messages. Available only on certain platforms.
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
: Call to get a new license. Available only on certain platforms.
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Get the number of pool elements checked out from the named pool. See NSLGetPoolInfo().
poolName | a string containing the five (5) character pool code of the pool to be withdrawn from. |
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Get the number of pool elements in the named pool. See NSLGetPoolMax().
poolName | a string containing the five (5) character pool code of the pool to be withdrawn from. |
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Get the number of pool elements checked out from the named pool. See NSLGetPoolStatus().
poolName | a string containing the five (5) character pool code of the pool to be withdrawn from. |
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
: Call to get a preset messages. Available only on certain platforms.
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Get the refresh date. Available only on certain platforms.
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Get remaining seconds until refresh. Available only on certain platforms.
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Get the end date of the subscription period. See NSLGetSubExpDate().
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Get the seconds remaining in the subscription period. See NSLGetSubExpSec().
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Retrieves the current time (seconds since epoch start) from the Nalpeiron daemon or server. See NSLGetTimeStamp().
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Get information about tokens checked out from the named pool. See NSLGetTokenInfo().
tokenName | a string containing the five (5) character code of the token pool to be withdrawn from. |
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Get the date of the trial expiration. See NSLGetTrialExpDate().
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Get the number of seconds remaining in the trial period. See NSLGetTrialExpSec().
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Retrieve the value of a UDF (AA). See callNSLGetUDFValue().
UDFName | a string containing the five (5) character UDF code of the value to be accessed |
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Gets the vewrsion of the NSL library being accessed. See NSLGetVersion()
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Retrieves virtual machine information for the system. See NSLGetVMInfo().
nalpError | If there was a problem calling the NSLfunction, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Imports a license from the given certificate. See NSLImportCertificate().
licenseNo | the license number associated with the given license certificate |
cert | Either the certificate itself passed in as a NULL terminated string or the full path to a file containing the certificate. |
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Contacts the SOAP server for a new license or a license refresh. See NSLObtainLicense()
licenseNo | If licenseNo is non-NULL that number is used in the attempt to retrieve a license. If the licenseNo is NULL, the function attempts to retrieve a trial license. |
xmlRegInfo | Optional registration information may be passed to the Nalpeiron server using the xmlRegInfo string. If there is no registration information, this pointer should be NULL. |
specialID | optional system identifier. If specified, Nalpeiron server will include this value inside an application agility field called $SpecialID which can be accessed by the calling program via NSLGetUDFValue (callNSLGetUDFValue). If this value has been specified before (ie in a previous call to callNSLObtainLicense, for instance) the same value must be specified when requesting the license in the future else the request will be rejected by the Nalpeiron server. Once set, the value may be cleared by returning the license. |
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Retrieve the value of a Secure Store. See callNSLReadSecStore().
rawkey | a NULL terminated, binary string containing no NULL values. The rawKey will be used to generate a suitable encryption key. This value should match the rawKey value passed to NSLWriteSecStore when the storage was created. |
storename | a string containing the five (5) character secure store code of the value to be accessed |
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
: Call registration function. Available only on certain platforms.
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Call a remote proceedure on the Nalpeiron server.
rpcName | The name of the remote proceedure |
varNames | an array of strings containing the names of the RPC's parameters. The order of the parameter names must match the order of the parameter values. That is, name1, name2, name3, must be in the same order as value1, value2, value3 |
varValues | an array of strings containing the values to be used for the RPC's parameters. The order of the parameter names must match the order of the parameter values. That is, name1, name2, name3, must be in the same order as value1, value2, value3 |
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Generate an request for a activation certificate from the Nalpeiron server (ie offline activation). The resulting request can be emailed or otherwise sent to Nalpeiron. See NSLRequestActivationCert (/ref NSLRequestActivationCert).
licenseNo | the license number to be used in creating the certificate request. If the licenseNo is NULL, an attempt for a trial license certificate will be made. |
xmlRegInfo | Optional registration information may be passed to the Nalpeiron server using the xmlRegInfo string. If there is no registration information, this pointer should be NULL. |
specialID | Optional user supplied string. If present in an activation certificate request the Nalpeiron server will place the supplied value in a special application agility field call $SpecialID. This field can be queried using callNSLGetUDFValue (callNSLGetUDFValue) to access the value from the calling program. |
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Return one use of a "floating feature" to the Nalpeiron server or daemon. See NSLReturnFeature().
featureName | a string containing the five (5) character feature code of the feature to be checked out. |
licenseNo | the license number of the current, valid system license |
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Returns the current license to the Nalpeiron server. See NSLReturnLicense().
licenseNo | The license code associated with the current license |
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Returns a specified number of elements to an element pool. See NSLReturnPool().
/**
poolName | a string containing the five (5) character pool code of the pool to be withdrawn from. |
licenseNo | the license number of the current, valid system license |
amt | the number of elements to withdraw from the pool |
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Returns the specified number of tokens from the local machine to the Nalpeiron server.
tokenName | a string containing the five (5) character code of the token pool to be consumed from. |
licenseNo | the license number of the current, valid system license |
amt | the number of elements to return. |
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Set username and password for future logins to the Nalpeiron licensing server or for a user provided authentication callback function.
The Nalpeiron library provides three forms of authentication. In the simplest form, the username and password are presented to NSLSetCredentials. Both are passed to Nalpeiron (the password is never stored or transmitted as plain text) for validation. If the Nalpeiron server validates them a license can be obtains via calls such as NSLGetLicense.
In a second method, in addition to the username a callback function is passed into NSLCredentials. When authentication is required (ie when NSLSetCredentials is called but also when functions such as NSLGetLicense and NSLGetActivationCertReq are called) the callback will be called from the library. The callback must have the following function prototype:
int64_t (*userAuth)(char *uname, char *pword, void *inData, char **authToken, uint32_t *outDataSize, void **outData);
where uname = username pword = password inData = arbitrary data passed to the callback via the library if inData was set via NSLSetCredentials. Can be NULL authToken = an authentication token that may be passed back to the library. It is unused in straight callback authentication. outData = arbitrary data that may be passed back to the library from the callback. It is available via NSLGetCredentials. outDataSize = the size in bytes of the outData
If the return from the callback is >= 0, the library will assume that authentication has suceeded. If the return is < 0, the library will assume that authentication has failed. The return value of the callback is available via NSLGetCredentials.
In the third method of authentication the callback provides not just a return value but also an authentication token. The authentication token is passed to Nalpeiron for all licensing requests and will be verified there before the licensing occurs. One method of using the authentication token would be to generate a random string for the token during the callback. Before returning this string to the library, Nalpeiron web services would be used to push to Nalpeiron.
NSLSetCredentials may only be used when
There is no valid license (ie license status <= 0) or May be be used to set the callback and inData when accessing a license file with cached credentials. That is, the license was not returned when the library was closed and so the license file contains a valid (license status > 0) license with cached ABL credentials.
classname | if empty then autentication will take place at Nalpeiron. If non-empty then the user supplied callback with found in classname with methname will be used for authentication. |
methname | if NULL then autentication will take place at Nalpeiron. If non-NULL then the pointer will be used as a user supplied callback with the form: |
long function(String username, String password, String inData, ByteBuffer authToken, int[] outDataSize, ByteBuffer outData);
This function will be called to authenticate the username/password combination. The function will have the username, password, and data parameters passed to it exactly as the were passed to the NSLSetCredentials function. This means, for instance, that you could encrypt the password before passing it to NSLSetCredentials for security purposes (of course, that would mean, the userAuthenticator function would need to be able to use an encrypted password). The callback is called immediately (ie in NSLSetCredentials) and again whenever a call to NSLGetLicense is made.
username | either a NULL terminated, UTF-8 encoded string containing a valid username for the Nalpeiron server OR a UTF-8 encoded string that will be passed to the userAuthenticator function. NOTE in the case that a userAuthenticator function is to be used neither the username nor the password are stored in the license file. This means that the NSLSetCredentials function should be called after any library initialization. The username size is limited to 4k (4096 bytes). |
password | a NULL terminated, UTF-8 encoded string containing a valid password for the Nalpeiron server OR a UTF-8 encoded string that will be passed to the userAuthenticator function. In the case of the password to be used at Nalpeiron for authentication, the password is never recorded nor transmitted in plain text. If the password is to be passed to an authentication function (ie userAuthenticator != NULL), then the password is NOT stored in the license file. This means that the NSLSetCredentials function should be called after any library initialization. The password size is limited to 4k (4096 bytes). |
inData | an optional bit of data that, if non-NULL, will be passed into the userAuthenticator function. A copy of this data is made and stored in memory by the library. Data is NOT stored on disk at any time which means it is lost when the library is closed. NOTE data is neither used nor stored if a callback is not specified. The maximum allowable size is 4k (4096 bytes). |
|
inline |
This function mirrors the functionality of NSLSetCredentials but uses a JWT (JSON Web Token) to gather the needed authentication information.
ssoToken | A valid NULL terminated jwt presented as a string. The jwt will be validated before being used as an authentication source. The standard JWT validation method is used which will require access to the IDP for jwks information. A local IDP may be used. |
inData | used at this time. Should be set to NULL by the caller. |
|
inline |
: Tests the network connection to Nalpeiron. See NSLTestConnection().
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
: Tests the network connection to Nalpeiron. See NSLTestConnection2().
connTO | if non-zero the number of milliseconds the library should wait for the initial connection to the Nalpeiron server to complete before timing out. If 0, the values passed into NalpLibOpen are used. This value overrides any connection timeout specified at library initialization. |
transTO | if non-zero the number of milliseconds the library should wait for the entire transaction (this includes the connection time above, name look-up time, transfer time, etc) to the Nalpeiron server to complete before timing out. If 0, the passed into NalpLibOpen are used. This value overrides any transaction timeout specified at library initialization. |
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Verifies that the shared library you are accessing is the library you stamped at Nalpeiron's website. It does this by checking the customerID and productID sent in against the stamped values. See NSLValidateLibrary(). Any negative return value, even if it is not a known error code, is cause to consider the library invalid.
custID | a unsigned 32 bit integer containing your Nalpeiron customer ID. |
prodID | a unsigned 32 bit integer containing your Nalpeiron product ID. |
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
Write the value to a Secure Store. See callNSLWriteSecStore().
rawkey | a NULL terminated, binary string containing no NULL values. The rawKey will be used to generate a suitable encryption key. This value should match the rawKey value passed to NSLWriteSecStore when the storage was created. |
storename | a string containing the five (5) character secure store code of the value to be accessed |
secstorevalue | binary string of length storeSize containing the information stored in storeName. The max size of the stored information is 4k. NOTE the contants of this value is treated as a binary string. If you wish a NULL terminator it must be included in the string when it is stored. storeValue should be freed with NSLFree |
nalpError | If there was a problem calling the NSL function, this error will be thrown (Nalpeiron V10 error returns) |
|
inline |
|
inline |