public class Version2LicenseDecoder extends AbstractLicenseDecoder
| License text length | License text | License text md5 hash | Separator | License version | Length of base 64 encoded part |
|---|---|---|---|---|---|
| Base 64 encoded | X | Clear text | Base 31 encoded | ||
| Modifier and Type | Field and Description |
|---|---|
static int |
ENCODED_LICENSE_LENGTH_BASE |
static byte[] |
LICENSE_PREFIX |
static char |
SEPARATOR |
static int |
VERSION_LENGTH |
static int |
VERSION_NUMBER_1 |
static int |
VERSION_NUMBER_2 |
| Constructor and Description |
|---|
Version2LicenseDecoder() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDecode(String licenseString) |
Properties |
doDecode(String licenseString) |
protected int |
getLicenseVersion() |
static String |
packLicense(byte[] text,
byte[] hash) |
decodepublic static final int VERSION_NUMBER_1
public static final int VERSION_NUMBER_2
public static final int VERSION_LENGTH
public static final int ENCODED_LICENSE_LENGTH_BASE
public static final byte[] LICENSE_PREFIX
public static final char SEPARATOR
public boolean canDecode(String licenseString)
public Properties doDecode(String licenseString)
doDecode in class AbstractLicenseDecoderprotected int getLicenseVersion()
getLicenseVersion in class AbstractLicenseDecoderpublic static String packLicense(byte[] text, byte[] hash) throws LicenseException
LicenseExceptionCopyright © 2005–2018 Atlassian. All rights reserved.