2018-11-09 16:06:31 +01:00
|
|
|
package sonia.scm.security;
|
|
|
|
|
|
|
|
|
|
import java.lang.annotation.ElementType;
|
|
|
|
|
import java.lang.annotation.Retention;
|
|
|
|
|
import java.lang.annotation.RetentionPolicy;
|
|
|
|
|
import java.lang.annotation.Target;
|
|
|
|
|
|
2018-11-13 11:14:41 +01:00
|
|
|
/**
|
|
|
|
|
* Use this annotation to mark REST resource methods that may be accessed <b>without</b> authentication.
|
|
|
|
|
* To mark all methods of a complete class you can annotate the class instead.
|
|
|
|
|
*/
|
2018-11-09 16:06:31 +01:00
|
|
|
@Target({ElementType.TYPE, ElementType.METHOD})
|
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
|
public @interface AllowAnonymousAccess {
|
|
|
|
|
}
|