|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.license.DefaultLicenseService
public class DefaultLicenseService
Responsible for the decoding of a license using the v2 LicenseManager. Delegates the validation to
LicenseValidator and all storage operations to LicenseStore.
| Constructor Summary | |
|---|---|
DefaultLicenseService(LicenseStore store,
com.atlassian.extras.api.LicenseManager decoder,
LicenseValidator validator)
|
|
| Method Summary | |
|---|---|
com.atlassian.extras.api.confluence.ConfluenceLicense |
install(java.lang.String licenseString)
Validates and installs a given encrypted license. |
com.atlassian.extras.api.confluence.ConfluenceLicense |
retrieve()
Retrieves the currently installed Confluence license. |
com.atlassian.fugue.Maybe<com.atlassian.extras.api.ProductLicense> |
retrieve(com.atlassian.extras.api.Product product)
Retrieves the license for the requested product. |
com.atlassian.extras.api.confluence.ConfluenceLicense |
validate(java.lang.String licenseString)
Validates the given encrypted license. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultLicenseService(LicenseStore store,
com.atlassian.extras.api.LicenseManager decoder,
LicenseValidator validator)
| Method Detail |
|---|
public com.atlassian.extras.api.confluence.ConfluenceLicense retrieve()
LicenseServiceLicenseService.retrieve(Product) with Product.CONFLUENCE.
retrieve in interface LicenseService
public com.atlassian.fugue.Maybe<com.atlassian.extras.api.ProductLicense> retrieve(com.atlassian.extras.api.Product product)
throws LicenseException
LicenseService
retrieve in interface LicenseServiceproduct - the product for which the license is requested
LicenseException - if no license is installed or the license could not be de-cryptedpublic com.atlassian.extras.api.confluence.ConfluenceLicense install(java.lang.String licenseString)
LicenseService
install in interface LicenseServicelicenseString - the encrypted license
public com.atlassian.extras.api.confluence.ConfluenceLicense validate(java.lang.String licenseString)
LicenseService
validate in interface LicenseServiceLicenseService.install(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||