public class LicenseReader
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.nio.charset.Charset |
LICENSE_FILE_ENCODING |
static java.lang.String |
LICENSE_PREAMBLE |
static java.util.regex.Pattern |
LICENSE_PREAMBLE_REGEXP |
static java.lang.String |
PUB_KEY |
static java.lang.String |
SIGNATURE_ENDING |
static java.lang.String |
SIGNATURE_PREAMBLE |
| Constructor and Description |
|---|
LicenseReader() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
readKey(java.lang.String data) |
static License |
readLicense(java.io.File licenseFile) |
static com.xebialabs.license.LicenseReader.LicenseVersionAndData |
readLicenseData(java.io.File licenseFile) |
public static final java.lang.String PUB_KEY
public static final java.lang.String LICENSE_PREAMBLE
public static final java.lang.String SIGNATURE_ENDING
public static final java.lang.String SIGNATURE_PREAMBLE
public static final java.util.regex.Pattern LICENSE_PREAMBLE_REGEXP
public static final java.nio.charset.Charset LICENSE_FILE_ENCODING
public static byte[] readKey(java.lang.String data)
throws java.io.IOException
java.io.IOExceptionpublic static License readLicense(java.io.File licenseFile)
public static com.xebialabs.license.LicenseReader.LicenseVersionAndData readLicenseData(java.io.File licenseFile)