Annotation Interface IsAuthorizedPaymentMethodResourceOwnerOrAdmin
@Target(METHOD)
@Retention(RUNTIME)
@PreAuthorize("hasRole(\'TRUSTED_CLIENT\')OR @userValidator.principalMatchRelatedPartyOrUserIsProvided(authentication, #relatedPartyId)")
public @interface IsAuthorizedPaymentMethodResourceOwnerOrAdmin
Annotation for securing Payment Methods REST endpoints.
Only users that have role TRUSTED_CLIENT or users that own the resource can retrieve data from these endpoints.
Only users that have role TRUSTED_CLIENT or users that own the resource can retrieve data from these endpoints.
- Since:
- 2302