|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.cinnabarsystems.clm.LicenseUtility
public class LicenseUtility
Class used to perform utility operations on license streams.
| Constructor Summary | |
|---|---|
LicenseUtility()
|
|
| Method Summary | |
|---|---|
static License |
acquireLicense(InputStream clmLicenseStream,
File licenseDirectory,
String licenseFileExtension,
InputStream publicKeyInputStream,
String product,
String feature)
Test directory-based license acquisition using astream containing an encoded public key. |
static License |
acquireLicense(InputStream clmLicenseStream,
File licenseDirectory,
String licenseFileExtension,
PublicKey verificationKey,
String product,
String feature)
Test directory-based license acquisition using an existing PublicKey object. |
static License |
acquireLicense(InputStream clmLicenseStream,
InputStream licenseStream,
InputStream publicKeyInputStream,
String product,
String feature)
Test license acquisition using astream containing an encoded public key. |
static License |
acquireLicense(InputStream clmLicenseStream,
InputStream licenseStream,
PublicKey verificationKey,
String product,
String feature)
Test license acquisition using an existing PublicKey object. |
static void |
dumpLicense(InputStream licenseStream)
Prints a summary of license parameters. |
static void |
dumpLicense(InputStream licenseStream,
PrintStream output)
Prints a summary of license parameters |
static License |
getLicenseObject(InputStream licenseStream)
Get a License object from a license file. |
static void |
verifyLicense(InputStream clmLicenseStream,
InputStream licenseStream,
InputStream publicKeyInputStream)
Verify a license stream using a stream containing an encoded public key. |
static void |
verifyLicense(InputStream clmLicenseStream,
InputStream licenseStream,
PublicKey verificationKey)
Verify a license stream using an existing PublicKey object. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LicenseUtility()
| Method Detail |
|---|
public static void verifyLicense(InputStream clmLicenseStream,
InputStream licenseStream,
PublicKey verificationKey)
throws IOException,
LicenseManagerException,
GeneralSecurityException
licenseStream - stream containing a license fileverificationKey - public key to use to verify the license
IOException
LicenseManagerException
GeneralSecurityException
public static void verifyLicense(InputStream clmLicenseStream,
InputStream licenseStream,
InputStream publicKeyInputStream)
throws IOException,
GeneralSecurityException,
LicenseManagerException
licenseStream - stream containing a license filepublicKeyInputStream - stream from which an encoded public key
can be read and used to verify the license
IOException
GeneralSecurityException
LicenseManagerException
public static License acquireLicense(InputStream clmLicenseStream,
InputStream licenseStream,
PublicKey verificationKey,
String product,
String feature)
throws IOException,
LicenseManagerException,
GeneralSecurityException
licenseStream - stream containing a license fileverificationKey - public key to use to verify the licenseproduct - product for which to acquire a licensefeature - feature for which to acquire a license
IOException
LicenseManagerException
GeneralSecurityException
public static License acquireLicense(InputStream clmLicenseStream,
InputStream licenseStream,
InputStream publicKeyInputStream,
String product,
String feature)
throws IOException,
GeneralSecurityException,
LicenseManagerException
licenseStream - stream containing a license filepublicKeyInputStream - stream from which an encoded public key
can be read and used to verify the licenseproduct - product for which to acquire a licensefeature - feature for which to acquire a license
IOException
GeneralSecurityException
LicenseManagerException
public static License acquireLicense(InputStream clmLicenseStream,
File licenseDirectory,
String licenseFileExtension,
PublicKey verificationKey,
String product,
String feature)
throws IOException,
LicenseManagerException,
GeneralSecurityException
licenseDirectory - directory containing license fileslicenseFileExtension - extension for license files (wildcards not
supported)verificationKey - public key to use to verify the licenseproduct - product for which to acquire a licensefeature - feature for which to acquire a license
IOException
LicenseManagerException
GeneralSecurityException
public static License acquireLicense(InputStream clmLicenseStream,
File licenseDirectory,
String licenseFileExtension,
InputStream publicKeyInputStream,
String product,
String feature)
throws IOException,
GeneralSecurityException,
LicenseManagerException
licenseDirectory - directory containing license fileslicenseFileExtension - extension for license files (wildcards not
supported)publicKeyInputStream - stream from which an encoded public key
can be read and used to verify the licenseproduct - product for which to acquire a licensefeature - feature for which to acquire a license
IOException
GeneralSecurityException
LicenseManagerException
public static License getLicenseObject(InputStream licenseStream)
throws IOException,
LicenseManagerException
licenseStream - stream containing a license file
IOException
LicenseManagerException
public static void dumpLicense(InputStream licenseStream,
PrintStream output)
throws IOException,
LicenseManagerException
licenseStream - stream containing a license fileoutput - destination for license parameter summary information
IOException
LicenseManagerException
public static void dumpLicense(InputStream licenseStream)
throws IOException,
LicenseManagerException
licenseStream - stream containing a license file
IOException
LicenseManagerException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||