Package jetbrains.buildServer.serverSide
Interface LicenseKeysManager
-
- All Known Implementing Classes:
SecuredLicenseKeysManager,ServerLicenseManager
public interface LicenseKeysManagerManages license keys.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LicenseKeyaddJwtKey(String key)Adds JWT key.List<LicenseKey>addKeys(List<String> keys)voidaddListener(LicenseKeysListener listener)Adds listener to license keys managerLicenseListgetLicenseList()LicensingPolicyExgetLicensingPolicy()voidremoveAllKeys(List<String> keys)Removes all of the provided keys.voidremoveJwtKey()Removes JWT key.voidremoveKey(String key)Removes a single key.voidremoveListener(LicenseKeysListener listener)Removes listener from the license keys managerList<LicenseKey>validateKeys(List<String> keys)
-
-
-
Method Detail
-
addKeys
@NotNull List<LicenseKey> addKeys(@NotNull List<String> keys) throws PersistFailedException
- Throws:
PersistFailedException
-
removeKey
void removeKey(@NotNull String key) throws PersistFailedExceptionRemoves a single key.- Parameters:
key- a key to remove- Throws:
PersistFailedException- in case of error saving license keys on disk
-
removeAllKeys
void removeAllKeys(@NotNull List<String> keys) throws PersistFailedExceptionRemoves all of the provided keys. In case of any error no keys will be removed.- Parameters:
keys- keys to remove- Throws:
PersistFailedException- in case of error saving license keys on disk
-
addJwtKey
@NotNull LicenseKey addJwtKey(@NotNull String key) throws PersistFailedException, InvalidLicenseKeyException
Adds JWT key.- Parameters:
key-- Returns:
- parsed license key
- Throws:
PersistFailedExceptionInvalidLicenseKeyException
-
removeJwtKey
void removeJwtKey() throws PersistFailedExceptionRemoves JWT key.- Throws:
PersistFailedException- in case of error saving license keys on disk
-
getLicensingPolicy
@NotNull LicensingPolicyEx getLicensingPolicy()
-
getLicenseList
@NotNull LicenseList getLicenseList()
-
validateKeys
@NotNull List<LicenseKey> validateKeys(@NotNull List<String> keys)
-
addListener
void addListener(@NotNull LicenseKeysListener listener)Adds listener to license keys manager- Parameters:
listener- listener
-
removeListener
void removeListener(@NotNull LicenseKeysListener listener)Removes listener from the license keys manager- Parameters:
listener- listener
-
-