|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Internal @ParametersAreNonnullByDefault public interface LicenseStore
Encapsulates storing and validating a license.
Method Summary | |
---|---|
void |
clearLicenseFromMemory()
Clears the currently installed from memory, causing it to be re-read from persistent the next time retrieve() is called. |
void |
install(String licenseString)
Attempts to install the given encrypted license. |
void |
installTransiently(String licenseString)
Attempts to install the given license transiently. |
com.atlassian.extras.api.AtlassianLicense |
retrieve()
Retrieves the currently installed license. |
Method Detail |
---|
@Nonnull com.atlassian.extras.api.AtlassianLicense retrieve()
void install(String licenseString)
licenseString
- the encrypted license
IllegalArgumentException
- most likely due to the license not being de-cryptable
IllegalStateException
- most likely due to a problem while persisting the licenseLicenseService.validate(String)
void installTransiently(String licenseString)
IllegalArgumentException
- most likely due to the license not being de-cryptable
IllegalStateException
- most likely due to a problem while persisting the licensevoid clearLicenseFromMemory()
retrieve()
is called. It is provided for testing purposes only.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |