42BV/beanmapper

Ability to deal with @BeanSecuredProperty by delegating to a SecuredPropertyHandler

robert-bor opened this issue · 0 comments

The following is desirable:

@BeanSecuredProperty("GRONDSLAG_BSN")
private String bsn;

The value of SecuredField can also be an array of Strings.

The library should react in two possible ways:

Form; make sure that the field is only copied to the target when the Principal has the authorization to do so. Otherwise, ignore it completely
Result; make sure that the field is only copied from the source when the Principal has the authorization to do so. Otherwise, ignore it completely.

As always, BeanMapper must be agnostic of implementations. BeanMapper Spring will supply a ready-to-use handler for Spring Security.