PermitAll (Java EE 5)

Java EE API


javax.annotation.security Annotation Type PermitAll


@Documented
@Retention(value=RUNTIME)
@Target(value={TYPE,METHOD})
public @interface PermitAll

Implements: Annotation
@Documented
@Retention(value=RUNTIME)
@Target(value={TYPE, METHOD})

规定允许所有安全角色调用指定的方法,即指定的方法是“未经检查的”。可以对类或方法指定。对类指定表示它应用于该类的所有方法。如果在方法级别上指定,则只影响该方法。如果在类级别上指定 RolesAllowed,且在方法级别上应用此注释,则 PermitAll 注释将对指定的方法重写 RolesAllowed。
英文文档:

Specifies that all security roles are allowed to invoke the specified method(s) i.e that the specified method(s) are "unchecked". It can be specified on a class or on methods. Specifying it on the class means that it applies to all methods of the class. If specified at the method level, it only affects that method. If the RolesAllowed is specified at the class level and this annotation is applied at the method level, the PermitAll annotation overrides the RolesAllowed for the specified method.

Since:
1.0
See Also:
RolesAllowed, DenyAll



Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!