|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.cinnabarsystems.clm.LicenseManager
public class LicenseManager
Class used to acquire licenses at run time. Clients should construct a single instance of this class per license file, then use that instance to attempt to acquire licenses for each product/feature combination necessary for program operation.
| Constructor Summary | |
|---|---|
LicenseManager(InputStream clmLicenseStream,
File licenseDirectory,
String licenseFileExtension,
InputStream verificationKeyStream)
Constructs an object for license acquisition. |
|
LicenseManager(InputStream clmLicenseStream,
File licenseDirectory,
String licenseFileExtension,
PublicKey verificationKey)
Constructs an object for license acquisition. |
|
LicenseManager(InputStream clmLicenseStream,
InputStream licenseStream,
InputStream verificationKeyStream)
Constructs an object for license acquisition. |
|
LicenseManager(InputStream clmLicenseStream,
InputStream licenseStream,
PublicKey verificationKey)
Constructs an object for license acquisition. |
|
| Method Summary | |
|---|---|
License |
acquireLicense(String product,
String feature)
Acquire a license for a given product and feature. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LicenseManager(InputStream clmLicenseStream,
InputStream licenseStream,
PublicKey verificationKey)
throws IOException,
LicenseManagerException,
GeneralSecurityException
clmLicenseStream - stream where the license for CLM itself can
be readlicenseStream - stream where the license file can be foundverificationKey - key to use for verifying the license signature
LicenseManagerException - Thrown if the CLM license cannot be
acquired
IOException
GeneralSecurityException
public LicenseManager(InputStream clmLicenseStream,
InputStream licenseStream,
InputStream verificationKeyStream)
throws IOException,
LicenseManagerException,
GeneralSecurityException
clmLicenseStream - stream where the license for CLM itself can
be readlicenseStream - stream where the license file can be foundverificationKeyStream - stream where the public key to use for
verifying the license signature can be found
LicenseManagerException - Thrown if the CLM license cannot be
acquired
IOException
GeneralSecurityException
public LicenseManager(InputStream clmLicenseStream,
File licenseDirectory,
String licenseFileExtension,
PublicKey verificationKey)
throws IOException,
LicenseManagerException,
GeneralSecurityException
clmLicenseStream - stream where the license for CLM itself can
be readlicenseDirectory - directory containing license fileslicenseFileExtension - extension for license files (wildcards not
supported)verificationKey - key to use for verifying the license signature
LicenseManagerException - Thrown if the CLM license cannot be
acquired
IOException
GeneralSecurityException
public LicenseManager(InputStream clmLicenseStream,
File licenseDirectory,
String licenseFileExtension,
InputStream verificationKeyStream)
throws IOException,
LicenseManagerException,
GeneralSecurityException
clmLicenseStream - stream where the license for CLM itself can
be readlicenseDirectory - directory containing license fileslicenseFileExtension - extension for license files (wildcards not
supported)verificationKeyStream - stream where the public key to use for
verifying the license signature can be found
LicenseManagerException - Thrown if the CLM license cannot be
acquired
IOException
GeneralSecurityException| Method Detail |
|---|
public License acquireLicense(String product,
String feature)
throws LicenseManagerException
product - product for which to acquire licensefeature - feature for which to acquire license
LicenseManagerException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||