Class SecuredLicenseKeysManager
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.auth.SecuredLicenseKeysManager
-
- All Implemented Interfaces:
LicenseKeysManager
public class SecuredLicenseKeysManager extends Object implements LicenseKeysManager
- Author:
- Pavel.Sher Date: 01.11.2007
-
-
Constructor Summary
Constructors Constructor Description SecuredLicenseKeysManager(LicenseKeysManager delegate, SecurityContextEx securityContext)
-
Method Summary
All Methods Instance Methods Concrete 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)
-
-
-
Constructor Detail
-
SecuredLicenseKeysManager
public SecuredLicenseKeysManager(@NotNull LicenseKeysManager delegate, @NotNull SecurityContextEx securityContext)
-
-
Method Detail
-
addKeys
@NotNull public List<LicenseKey> addKeys(@NotNull List<String> keys)
- Specified by:
addKeysin interfaceLicenseKeysManager
-
removeKey
public void removeKey(@NotNull String key)Description copied from interface:LicenseKeysManagerRemoves a single key.- Specified by:
removeKeyin interfaceLicenseKeysManager- Parameters:
key- a key to remove
-
removeAllKeys
public void removeAllKeys(@NotNull List<String> keys)Description copied from interface:LicenseKeysManagerRemoves all of the provided keys. In case of any error no keys will be removed.- Specified by:
removeAllKeysin interfaceLicenseKeysManager- Parameters:
keys- keys to remove
-
addJwtKey
@NotNull public LicenseKey addJwtKey(@NotNull String key) throws PersistFailedException, InvalidLicenseKeyException
Description copied from interface:LicenseKeysManagerAdds JWT key.- Specified by:
addJwtKeyin interfaceLicenseKeysManager- Returns:
- parsed license key
- Throws:
PersistFailedExceptionInvalidLicenseKeyException
-
removeJwtKey
public void removeJwtKey() throws PersistFailedExceptionDescription copied from interface:LicenseKeysManagerRemoves JWT key.- Specified by:
removeJwtKeyin interfaceLicenseKeysManager- Throws:
PersistFailedException- in case of error saving license keys on disk
-
getLicensingPolicy
@NotNull public LicensingPolicyEx getLicensingPolicy()
- Specified by:
getLicensingPolicyin interfaceLicenseKeysManager
-
getLicenseList
@NotNull public LicenseList getLicenseList()
- Specified by:
getLicenseListin interfaceLicenseKeysManager
-
validateKeys
@NotNull public List<LicenseKey> validateKeys(@NotNull List<String> keys)
- Specified by:
validateKeysin interfaceLicenseKeysManager
-
addListener
public void addListener(@NotNull LicenseKeysListener listener)Description copied from interface:LicenseKeysManagerAdds listener to license keys manager- Specified by:
addListenerin interfaceLicenseKeysManager- Parameters:
listener- listener
-
removeListener
public void removeListener(@NotNull LicenseKeysListener listener)Description copied from interface:LicenseKeysManagerRemoves listener from the license keys manager- Specified by:
removeListenerin interfaceLicenseKeysManager- Parameters:
listener- listener
-
-