This commit is contained in:
parent
bfb7082a47
commit
f491dd7293
|
@ -9,6 +9,7 @@
|
|||
</Parameters>
|
||||
</PersistenceHandler>
|
||||
<SessionHandler class="ch.eitchnet.privilege.handler.DefaultSessionHandler" />
|
||||
<ModelHandler class="ch.eitchnet.privilege.handler.DefaultModelHandler" />
|
||||
<EncryptionHandler class="ch.eitchnet.privilege.handler.DefaultEncryptionHandler">
|
||||
<Parameters>
|
||||
<Parameter name="hashAlgorithm" value="SHA-256" />
|
||||
|
|
|
@ -164,6 +164,7 @@ public class PrivilegeContainer {
|
|||
}
|
||||
try {
|
||||
modelHandler.initialize(modificationHandlerElement);
|
||||
modelHandler.setPersistenceHandler(persistenceHandler);
|
||||
} catch (Exception e) {
|
||||
logger.error(e, e);
|
||||
throw new PrivilegeException("ModificationHandler " + modificationHandlerClassName
|
||||
|
|
|
@ -19,7 +19,7 @@ public class XmlConstants {
|
|||
public static final String XML_HANDLER_ENCRYPTION = "EncryptionHandler";
|
||||
public static final String XML_HANDLER_SESSION = "SessionHandler";
|
||||
public static final String XML_HANDLER_POLICY = "PolicyHandler";
|
||||
public static final String XML_HANDLER_MODEL = "ModificationHandler";
|
||||
public static final String XML_HANDLER_MODEL = "ModelHandler";
|
||||
|
||||
public static final String XML_ROLES = "Roles";
|
||||
public static final String XML_ROLE = "Role";
|
||||
|
|
|
@ -43,7 +43,7 @@ public class TestConfigurationHelper {
|
|||
PrivilegeContainer privilegeContainer = PrivilegeContainer.getInstance();
|
||||
privilegeContainer.initialize(privilegeContainerXml);
|
||||
|
||||
ModelHandler modelHandler = privilegeContainer.getModelHandler();
|
||||
// ModelHandler modelHandler = privilegeContainer.getModelHandler();
|
||||
|
||||
for (int i = 0; i < 10; i++) {
|
||||
// let's authenticate a session
|
||||
|
|
Loading…
Reference in New Issue