Annotation Type Roles


  • @Target({FIELD,METHOD})
    @Retention(RUNTIME)
    @Documented
    public @interface Roles

    Indicates that this field or property should be used as a source of roles for security. Supports the String type, or a Collection<String> or a Collection of entities with a field or getter annotated with RolesValue.

    Each role element is considered a comma-separated list of roles.