@Target(value=TYPE) @Retention(value=RUNTIME) public @interface AccessRequired
Use any or all of the following to control authorization:
@AccessRequired annotation at the class level to declare a resource
name and action to be enforced; use @AccessRequired.List to declare
more than one combination of resources and actions.
@AccessRequired.To annotation on a field that is a ConfigBean
to declare one or more actions to be enforced on the resource derived from that config bean.
@AccessRequired.Authorizer which
prescribes the isAuthorized method
that will make authorization decisions internally, without help from the
command framework.
@AccessRequired annotations and
subannotations and make sure all of them pass before allowing the command
to proceed.public abstract String[] resource
toString() return value replaces the token.public abstract String[] action
Copyright © 2017–2020 Eclipse Foundation. All rights reserved.