@Internal public interface

LicenseDetailsFactory

com.atlassian.jira.license.LicenseDetailsFactory
Known Indirect Subclasses

@Internal

This interface is an internal implementation detail and will change without notice.

Clients that depend on @Internal classes and interfaces can not expect to be compatible with any version other than the version they were compiled against (even minor version and milestone releases may break binary compatibility with respect to @Internal elements).

Class Overview

Provides the ability to extract a LicenseDetails object from a license String.

Summary

Public Methods
@Nonnull LicenseDetails getLicense(String licenseString)
Converts an encrypted license string to a license details.
boolean isDecodeable(String licenseString)
Determines whether a license string can be decoded by this factory.

Public Methods

@Nonnull public LicenseDetails getLicense (String licenseString)

Converts an encrypted license string to a license details. This method never returns null, instead it returns a placeholder license details if the license string cannot be converted to a valid license. This placeholder is typically a com.atlassian.jira.license.NullLicenseDetails.

Parameters
licenseString the (usually encrypted) license string
Returns
  • the corresponding license details

public boolean isDecodeable (String licenseString)

Determines whether a license string can be decoded by this factory. If this returns true, then getLicense is guaranteed t return a valid non-placeholder LicenseDetails object.

Parameters
licenseString the (usually encrypted) license string to test
Returns
  • true if the license string can be interpreted by this factory, false otherwise