Discuss this help topic in SecureBlackbox Forum

SetLicenseKey

Declared in     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


Use this function to pass license key to the library.

Declaration

[C#/Java]
    void SetLicenseKey(byte[] Key);

[VB.NET]
    Sub SetLicenseKey(ByVal Key As Byte())

[Pascal]
    procedure SetLicenseKey(const Key: string);

[C++]
    void SetLicenseKey(const std::string & Key);

[PHP]
    void SetLicenseKey(string $Key)

Parameters

  • Key - license key.

Description

This function must be called before any library use. Note, that each DLL has it's own SetLicenseKey method which must be called independently.

To set two or more license keys (when you have different license keys for different packages of SecureBlackbox) at the same time, just call SetLicenseKey several times, passing a different license key in each call. License keys are added, not replaced.
Note, that as the keys are added, passing an evaluation license key together with production license key will force evaluation delays and nag screen, so be sure to remove the evaluation license key from the list of keys being set.

The evaluation key is located in <SecureBlackbox>\LicenseKey.der file and in all sample projects, shipped with SecureBlackbox.

Declared in

.NET:
  • Namespace: SBUtils.Unit
  • Assembly: SecureBlackbox
VCL:
  • Unit: SBUtils
Java:
  • Package: SecureBlackbox.Base.jar
C++:
  • sbutils.h

Discuss this help topic in SecureBlackbox Forum