Class DefaultLicenseService

java.lang.Object
com.atlassian.confluence.license.DefaultLicenseService
All Implemented Interfaces:
LicenseServiceInternal, LicenseService, com.atlassian.crowd.embedded.spi.DcLicenseChecker

@ParametersAreNonnullByDefault public class DefaultLicenseService extends Object implements LicenseServiceInternal, com.atlassian.crowd.embedded.spi.DcLicenseChecker
Responsible for the decoding of a license using the v2 LicenseManager. Delegates the validation to LicenseValidator and all storage operations to LicenseStore.
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultLicenseService(LicenseStoreInternal store, com.atlassian.extras.api.LicenseManager decoder, LicenseValidator validator, com.atlassian.extras.core.AtlassianLicenseFactory licenseFactory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull com.atlassian.extras.api.confluence.ConfluenceLicense
    install(String licenseString)
    Validates and installs a given encrypted license.
    boolean
     
    boolean
    Returns whether there is a currently installed license.
    boolean
    Returns whether currently installed license is for Data Center.
    boolean
    Returns whether the currently installed license is for Data Center, or if the license should be treated as exempt from Data Center checks for testing purposes.
    @NonNull com.atlassian.extras.api.confluence.ConfluenceLicense
    Retrieves the currently installed Confluence license.
    @NonNull com.atlassian.extras.api.AtlassianLicense
    Retrieves the currently installed Atlassian license.
    @NonNull Optional<com.atlassian.extras.api.ProductLicense>
    retrieveForProduct(com.atlassian.extras.api.Product product)
    Retrieves the license for the requested product.
    @NonNull com.atlassian.extras.api.confluence.ConfluenceLicense
    validate(String licenseString)
    Validates the given encrypted license.
    @NonNull com.atlassian.extras.api.ProductLicense
    validate(String licenseString, com.atlassian.extras.api.Product product)
    Validates the given encrypted license.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.atlassian.confluence.license.LicenseService

    retrieve