Annotation Interface IsAuthorizedToValidateAddress
@Target(METHOD)
@Retention(RUNTIME)
@PreAuthorize("(hasRole(\'TRUSTED_CLIENT\') AND @userValidator.userIsProvided(authentication, #relatedPartyId)) OR @userValidator.isNotClientOnlyAndRelatedPartyMatchesUser(authentication, #relatedPartyId)")
public @interface IsAuthorizedToValidateAddress
Annotation for securing rest endpoints.
Only Clients that have obtained an authorization token for a specific user OR passed a relatedPartyId in request are able to consume the endpoint.
Only Clients that have obtained an authorization token for a specific user OR passed a relatedPartyId in request are able to consume the endpoint.
- Since:
- 2302