This class is considered usable by external developers but its contracts have not stabilized.
Experimental APIs may be changed at any time before being marked
@Internal
or
@PublicApi
.
Class Overview
Default implementation of LicenseRoleDetails
.
This implementation fails fast (in the constructor) on detection of invalid
license or license role details.
Public Constructors
public
DefaultLicenseRoleDetails
(String license, LicenseDecoder licenseDecoder)
Parameters
license
| An encoded license string. |
licenseDecoder
| A license decoder capable of decoding the given license. |
Throws
LicenseException
| on detection of invalid roles or role user counts.
|
Public Methods
@Nonnull
public
Set<LicenseRoleId>
getLicenseRoles
()
Returns the license roles
encoded in the present license.
Note: This implementation returns an unmodifiable Set
.