|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atomikos.vendor.CreateLicense
public class CreateLicense
Copyright © 2002, Guy Pardon. All rights reserved. A simple command tool for creating new license files.
Constructor Summary | |
---|---|
CreateLicense()
|
Method Summary | |
---|---|
static void |
createDeveloperLicense(String owner,
String productName,
String baseName,
String key,
long expiryDate,
Properties features)
Create a new developer license, not limited in time. |
static void |
createDomainLicense(String owner,
String productName,
String baseName,
String key,
long expiryDate,
String domain,
Properties features)
Create a new license that limits the hosts to the given domain. |
static void |
createEvaluationLicense(String owner,
String productName,
String baseName,
String key,
long expiryDate,
Properties features)
Create a new evaluation license that does NOT limit the hosts. |
static void |
createNodeLockedLicense(String owner,
String productName,
String baseName,
String key,
long expiryDate,
String[] hosts,
Properties features)
Create a new license that limits the hosts to the given IP addresses. |
static void |
createUnlimitedLicense(String issuer,
String productName,
String baseName,
String key,
long expiryDate,
Properties features)
Create a new license that does NOT limit the hosts. |
static void |
main(String[] args)
|
static void |
setDigestName(String name)
Set the name of the algorithm to use for computing digests. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CreateLicense()
Method Detail |
---|
public static final void createEvaluationLicense(String owner, String productName, String baseName, String key, long expiryDate, Properties features) throws IOException, NoSuchAlgorithmException
owner
- The owner.productName
- The name of the product line.baseName
- The base name of the license files.key
- The key to sign the license with.expiryDate
- The date of expiration. After this date, the license
becomes invalid.features
- The features to fix, empty object if none
IOException
- On IO error.
NoSuchAlgorithmException
- If the signature could not be
generated.public static final void createUnlimitedLicense(String issuer, String productName, String baseName, String key, long expiryDate, Properties features) throws IOException, NoSuchAlgorithmException
issuer
- The vendor who creates the license.productName
- The name of the product line.baseName
- The base name of the license files.key
- The key to sign the license with.expiryDate
- The date of expiration.features
- The features to fix in the license, emtpy if none.
IOException
- On IO error.
NoSuchAlgorithmException
- If the signature could not be
generated.public static final void createDomainLicense(String owner, String productName, String baseName, String key, long expiryDate, String domain, Properties features) throws IOException, NoSuchAlgorithmException
owner
- The owner.productName
- The name of the product line.baseName
- The base name of the license files.key
- The key to sign the license with.expiryDate
- When does the license expire?domain
- The domain name for the license.features
- The features to fix in the license. Empty if none.
IOException
- On IO error.
NoSuchAlgorithmException
- If the signature could not be
generated.public static final void createNodeLockedLicense(String owner, String productName, String baseName, String key, long expiryDate, String[] hosts, Properties features) throws IOException, NoSuchAlgorithmException
owner
- The owner of the license.productName
- The name of the product line.baseName
- The base name of the license files.key
- The key to sign the license with.expiryDate
- When does the license expire?hosts
- The host IP addresses for which the license is valid.features
- The features to fix in the license, empty if none.
IOException
- On IO error.
NoSuchAlgorithmException
- If the signature could not be
generated.public static final void createDeveloperLicense(String owner, String productName, String baseName, String key, long expiryDate, Properties features) throws NoSuchAlgorithmException, IOException
owner
- The owner of the license.productName
- The product name.baseName
- The name for the files.key
- The secret key for signing.expiryDate
- When does the license expire?features
- The features to fix.
NoSuchAlgorithmException
IOException
public static void setDigestName(String name)
name
- The name of the alg.public static final void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |