Skip to content

Commit

Permalink
fixed config
Browse files Browse the repository at this point in the history
  • Loading branch information
golsch committed Nov 19, 2024
1 parent 2a24d00 commit d6d52d0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ public static Set<String> getAllowedSessionPermissionTypes() {
*
* @return the secret processor class name
*/
public static String getSecretProcessorClassName() {
return MCRConfiguration2.getStringOrThrow("MCR.ACL.AccessKey.Service.SecretProcessor.Class");
public static String getSecretProcessorClassProperty() {
return "MCR.ACL.AccessKey.Service.SecretProcessor.Class";
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ private static MCRAccessKeyValidator createValidator() {

private static MCRAccessKeySecretProcessor getSecretProcessor() {
return MCRConfiguration2.getSingleInstanceOfOrThrow(
MCRAccessKeySecretProcessor.class, MCRAccessKeyConfig.getSecretProcessorClassName());
MCRAccessKeySecretProcessor.class, MCRAccessKeyConfig.getSecretProcessorClassProperty());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ MCR.ACL.AccessKey.Strategy.AllowedSessionPermissionTypes=read

# Value storage
MCR.ACL.AccessKey.Secret.Storage.Mode=hash
#MCR.ACL.AccessKey.Service.SecretProcessor.Class=org.mycore.mcr.acl.accesskey.value.MCRAccessKeyPlainSecretProcessor
MCR.ACL.AccessKey.Service.SecretProcessor.Class=org.mycore.mcr.acl.accesskey.value.MCRAccessKeyHashSecretProcessor
#MCR.ACL.AccessKey.Service.SecretProcessor.Class=org.mycore.mcr.acl.accesskey.value.MCRAccessKeyCryptSecretProcessor
#MCR.ACL.AccessKey.Service.SecretProcessor.Class=org.mycore.mcr.acl.accesskey.service.processor.MCRAccessKeyPlainSecretProcessor
MCR.ACL.AccessKey.Service.SecretProcessor.Class=org.mycore.mcr.acl.accesskey.service.processor.MCRAccessKeyHashSecretProcessor
#MCR.ACL.AccessKey.Service.SecretProcessor.Class=org.mycore.mcr.acl.accesskey.service.processor.MCRAccessKeyCryptSecretProcessor


# Hash settings
Expand Down

0 comments on commit d6d52d0

Please sign in to comment.