Annotation Interface IsAuthorizedAdminOrNotAnonymous
@Target(METHOD)
@Retention(RUNTIME)
@PreAuthorize("hasRole(\'TRUSTED_CLIENT\') OR @tuaUserValidator.isClientNotAnonymous(authentication, #relatedPartyId)")
public @interface IsAuthorizedAdminOrNotAnonymous
Annotation for securing rest endpoints.
Users that have role TRUSTED_CLIENT, users that are logged in and not anonymous can retrieve data from this endpoint.
Users that have role TRUSTED_CLIENT, users that are logged in and not anonymous can retrieve data from this endpoint.
- Since:
- 2208