Package jetbrains.buildServer.serverSide
Interface LicenseKeysManager
-
- All Known Implementing Classes:
SecuredLicenseKeysManager
,ServerLicenseManager
public interface LicenseKeysManager
Manages license keys.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LicenseKey
addJwtKey(String key)
Adds JWT key.List<LicenseKey>
addKeys(List<String> keys)
void
addListener(LicenseKeysListener listener)
Adds listener to license keys managerLicenseList
getLicenseList()
LicensingPolicyEx
getLicensingPolicy()
void
removeAllKeys(List<String> keys)
Removes all of the provided keys.void
removeJwtKey()
Removes JWT key.void
removeKey(String key)
Removes a single key.void
removeListener(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 PersistFailedException
Removes 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 PersistFailedException
Removes 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:
PersistFailedException
InvalidLicenseKeyException
-
removeJwtKey
void removeJwtKey() throws PersistFailedException
Removes 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
-
-