public class LicenseDetailsFactoryImpl extends Object implements LicenseDetailsFactory
Modifier and Type | Class and Description |
---|---|
static class |
LicenseDetailsFactoryImpl.JiraProductLicenseManager
JIRA internal license manager used for decoding license keys.
|
Constructor and Description |
---|
LicenseDetailsFactoryImpl(ApplicationProperties applicationProperties,
ExternalLinkUtil externalLinkUtil,
BuildUtilsInfo buildUtilsInfo,
I18nHelper.BeanFactory i18Factory,
DateTimeFormatter dateTimeFormatter,
com.atlassian.core.util.Clock clock) |
Modifier and Type | Method and Description |
---|---|
LicenseDetails |
getLicense(String licenseString)
Converts an encoded license key into a
LicenseDetails . |
boolean |
isDecodeable(String licenseString)
Determines whether a license string can be decoded by this factory.
|
public LicenseDetailsFactoryImpl(ApplicationProperties applicationProperties, ExternalLinkUtil externalLinkUtil, BuildUtilsInfo buildUtilsInfo, I18nHelper.BeanFactory i18Factory, DateTimeFormatter dateTimeFormatter, com.atlassian.core.util.Clock clock)
@Nonnull public LicenseDetails getLicense(@Nonnull String licenseString) throws com.atlassian.extras.api.LicenseException
LicenseDetailsFactory
LicenseDetails
. This method never
returns null, if the provided license key is undecodable or not for a JIRA Product a LicenseException
is thrown.getLicense
in interface LicenseDetailsFactory
licenseString
- the encoded license key.com.atlassian.extras.api.LicenseException
- if licenseString was null or could not be decoded (see LicenseDetailsFactory.isDecodeable(String)
.public boolean isDecodeable(@Nonnull String licenseString)
LicenseDetailsFactory
isDecodeable
in interface LicenseDetailsFactory
licenseString
- the (usually encrypted) license string to testCopyright © 2002-2019 Atlassian. All Rights Reserved.