dashboard
repositories
activity
search
login
common
/
securis
summary
reflog
commits
tree
compare
forks
blame
|
history
|
raw
|
HEAD
#2021 fix - Changed default license duration
rsanchez
2014-09-30
04ddecbb4520cdf4a04169b762d231d7b41188a2
[common/securis.git]
/
securis
/
src
/
main
/
java
/
net
/
curisit
/
securis
/
security
/
Securable.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;
}