public enum LicensingScheme extends Enum<LicensingScheme> implements ILicensingScheme
| Enum Constant and Description |
|---|
OCTET_LICENSE
A minimum scheme where the key consists of octets of characters, e.g. 12345678-ABCDEF23-78AB45ZG.
|
RSA_LICENSE
A full blown scheme where the license consists of an encrypted message containing all data.
|
| Modifier and Type | Method and Description |
|---|---|
protected <T> T |
create(Class<T> clazz)
Creates instance of the given class.
|
ILicenseCreator |
getLicenseCreator()
Returns an instance of the responsible license creator implementation.
|
ILicenseVerifier |
getLicenseVerifier()
Returns an instance of the responsible license verifier implementation.
|
static LicensingScheme |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LicensingScheme[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LicensingScheme OCTET_LICENSE
This scheme requires DSA keys.
public static final LicensingScheme RSA_LICENSE
public static LicensingScheme[] values()
for (LicensingScheme c : LicensingScheme.values()) System.out.println(c);
public static LicensingScheme valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic ILicenseCreator getLicenseCreator()
getLicenseCreator in interface ILicensingSchemepublic ILicenseVerifier getLicenseVerifier()
getLicenseVerifier in interface ILicensingSchemeprotected <T> T create(Class<T> clazz)
clazz - the class to be instantiatedLicenseException - when instantiation failsCopyright © 2014. All rights reserved.