io.mateu.security.Private Maven / Gradle / Ivy
package io.mateu.security;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Created by miguel on 18/1/17.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD}) //can use in method only.
public @interface Private {
String[] roles() default {};
String[] users() default {};
}