mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
Multiply floating store factories for type safety
This commit is contained in:
@@ -112,8 +112,8 @@ public class DefaultSecuritySystem implements SecuritySystem
|
||||
public DefaultSecuritySystem(ConfigurationEntryStoreFactory storeFactory)
|
||||
{
|
||||
store = storeFactory
|
||||
.withName(NAME)
|
||||
.withType(AssignedPermission.class)
|
||||
.withName(NAME)
|
||||
.build();
|
||||
readAvailablePermissions();
|
||||
}
|
||||
|
||||
@@ -91,8 +91,8 @@ public class SecureKeyResolver extends SigningKeyResolverAdapter
|
||||
public SecureKeyResolver(ConfigurationEntryStoreFactory storeFactory)
|
||||
{
|
||||
store = storeFactory
|
||||
.withName(STORE_NAME)
|
||||
.withType(SecureKey.class)
|
||||
.withName(STORE_NAME)
|
||||
.build();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user