package net.curisit.securis.security; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import net.curisit.securis.utils.TokenHelper; @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface Securable { /** * Name of header parameter with the auth token to validate */ String header() default TokenHelper.TOKEN_HEADER_PĂ€RAM; /** * Bit mask with the rol or roles necessary to access the method */ int roles() default 0; }