Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
@Retention(CLASS) @Target({METHOD, TYPE})
public @interface Secured
Lets this method – or every public method of this class – run only for a
caller holding one of these authorities, each written in full:
@Secured("ROLE_ADMIN").
Checked the way PreAuthorize is, self-calls and private methods included;
an annotation on a method replaces the one on its class.
Methods
public abstract String[] value() | The authorities, any one of which is enough. |
Method details
value
public abstract String[] value()The authorities, any one of which is enough.