|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.askgeo.dbl.base.Authorizer
public class Authorizer
Contains static methods for performing license file generation and authorization. This class is used internally and does not have any particular use to an end user.
| Field Summary | |
|---|---|
static java.lang.String |
CHARSET
The character set used to encode the license String. |
| Method Summary | |
|---|---|
static boolean |
authorize(java.lang.String s,
java.lang.String oracle)
Attempts to authorize the given license string for a given oracle name. |
static java.lang.String |
generate(byte[] privateKeyEnc,
java.lang.String email,
java.util.Date expiresAt,
java.lang.String... oracles)
Generates a license string with the given parameters. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CHARSET
| Method Detail |
|---|
public static boolean authorize(java.lang.String s,
java.lang.String oracle)
s - is the license string.oracle - is the oracle name, as returned by the getOracleName method on the map object.
public static java.lang.String generate(byte[] privateKeyEnc,
java.lang.String email,
java.util.Date expiresAt,
java.lang.String... oracles)
throws java.lang.Exception
privateKeyEnc - is the private keyemail - is the email associated with license.expiresAt - is the date after which the license is no longer valid.oracles - are the names of the oracles to include in the license file.
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||