|
1 | | -package io.supertokens.cronjobs.cleanupSAMLCodes; |
| 1 | +package io.supertokens.cronjobs.deleteExpiredSAMLData; |
2 | 2 |
|
3 | 3 | import java.util.List; |
4 | 4 |
|
|
10 | 10 | import io.supertokens.pluginInterface.multitenancy.TenantIdentifier; |
11 | 11 | import io.supertokens.pluginInterface.saml.SAMLStorage; |
12 | 12 |
|
13 | | -public class CleanupSAMLCodes extends CronTask { |
14 | | - public static final String RESOURCE_KEY = "io.supertokens.cronjobs.cleanupSAMLCodes" + |
15 | | - ".CleanupSAMLCodes"; |
| 13 | +public class DeleteExpiredSAMLData extends CronTask { |
| 14 | + public static final String RESOURCE_KEY = "io.supertokens.cronjobs.deleteExpiredSAMLData" + |
| 15 | + ".DeleteExpiredSAMLData"; |
16 | 16 |
|
17 | | - private CleanupSAMLCodes(Main main, List<List<TenantIdentifier>> tenantsInfo) { |
18 | | - super("CleanupOAuthSessionsAndChallenges", main, tenantsInfo, false); |
| 17 | + private DeleteExpiredSAMLData(Main main, List<List<TenantIdentifier>> tenantsInfo) { |
| 18 | + super("DeleteExpiredSAMLData", main, tenantsInfo, false); |
19 | 19 | } |
20 | 20 |
|
21 | | - public static CleanupSAMLCodes init(Main main, List<List<TenantIdentifier>> tenantsInfo) { |
22 | | - return (CleanupSAMLCodes) main.getResourceDistributor() |
| 21 | + public static DeleteExpiredSAMLData init(Main main, List<List<TenantIdentifier>> tenantsInfo) { |
| 22 | + return (DeleteExpiredSAMLData) main.getResourceDistributor() |
23 | 23 | .setResource(new TenantIdentifier(null, null, null), RESOURCE_KEY, |
24 | | - new CleanupSAMLCodes(main, tenantsInfo)); |
| 24 | + new DeleteExpiredSAMLData(main, tenantsInfo)); |
25 | 25 | } |
26 | 26 |
|
27 | 27 | @Override |
|
0 commit comments