Package com.xebialabs.license
Class LicenseReader
- java.lang.Object
-
- com.xebialabs.license.LicenseReader
-
public class LicenseReader extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.nio.charset.CharsetLICENSE_FILE_ENCODINGstatic java.util.regex.PatternLICENSE_PREAMBLE_REGEXPstatic java.util.regex.PatternLICENSE_PREAMBLE_V1_REGEXPstatic java.lang.StringPUB_KEYstatic java.lang.StringSIGNATURE_ENDINGstatic java.lang.StringSIGNATURE_PREAMBLE
-
Constructor Summary
Constructors Constructor Description LicenseReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.xebialabs.license.LicensereadFromBase64(java.lang.String data)com.xebialabs.license.LicensereadLicense(com.xebialabs.deployit.io.ConfigurationResource resource)com.xebialabs.license.LicensereadLicense(java.io.File licenseFile)
-
-
-
Field Detail
-
PUB_KEY
public static final java.lang.String PUB_KEY
- See Also:
- Constant Field Values
-
SIGNATURE_ENDING
public static final java.lang.String SIGNATURE_ENDING
- See Also:
- Constant Field Values
-
SIGNATURE_PREAMBLE
public static final java.lang.String SIGNATURE_PREAMBLE
- See Also:
- Constant Field Values
-
LICENSE_PREAMBLE_REGEXP
public static final java.util.regex.Pattern LICENSE_PREAMBLE_REGEXP
-
LICENSE_PREAMBLE_V1_REGEXP
public static final java.util.regex.Pattern LICENSE_PREAMBLE_V1_REGEXP
-
LICENSE_FILE_ENCODING
public static final java.nio.charset.Charset LICENSE_FILE_ENCODING
-
-
Method Detail
-
readLicense
public com.xebialabs.license.License readLicense(java.io.File licenseFile)
-
readLicense
public com.xebialabs.license.License readLicense(com.xebialabs.deployit.io.ConfigurationResource resource) throws java.io.IOException- Throws:
java.io.IOException
-
readFromBase64
public com.xebialabs.license.License readFromBase64(java.lang.String data)
-
-