|
|
Custom @Secured Annotation for Enums
Hi there,
this is my first post!
I want to define a custom @Secured-Annotation, wich can handle Enums like that:Code:
public interface MyDAO {
@MySecured(Right.Admin) public Listlt;OmnibusOrdergt; doSomethingIncredible();
}
Is there a Way to configure Spring Security to use this @MySecured-Annotation with my Right-Enum?
thx for any help.
Toast
No, but you'll find an issue in Jira which covers exactly this scenario.
As it is you'd have to write the SecurityMetadataSource implementation yourself.
Thx for the tip. I will try to get my own Implementation of SecurityMetadataSource till this is fixed!
If i get it working, i will share it in this Thread! |
|