注释类型 Secured
-
@Retention(RUNTIME) public @interface SecuredAnnotation indicating that the annotated request should be authorized.- 从以下版本开始:
- 1.2.0
- 作者:
- nkorange, mai.jh
-
-
可选元素概要
可选元素 修饰符和类型 可选元素 说明 com.alibaba.nacos.plugin.auth.constant.ActionTypesactionThe action type of the request.java.lang.Class<? extends ResourceParser>parserCustom resource parser.java.lang.StringresourceThe name of resource related to the request.java.lang.StringsignTypeThe module of resource related to the request.java.lang.String[]tagsSpecified tags for this secured, these tags will be injected intoResourceas the keys and values of properties.
-
-
-
-
parser
java.lang.Class<? extends ResourceParser> parser
Custom resource parser. Should have lower priority than resource() and typed parser.- 返回:
- class type of resource parser
- 默认值:
- com.alibaba.nacos.auth.parser.DefaultResourceParser.class
-
-