1 package com.atlassian.asap.core.server.jersey;
2
3 import com.atlassian.asap.api.Jwt;
4
5 import java.lang.annotation.ElementType;
6 import java.lang.annotation.Retention;
7 import java.lang.annotation.RetentionPolicy;
8 import java.lang.annotation.Target;
9
10 /**
11 * The JwtParam annotation is used to inject the authentic {@link Jwt} token into the current resource handler method.
12 * The injected value will be non-null if ASAP authorization is required for the resource or resource method, and null
13 * otherwise.
14 */
15 @Target({ElementType.PARAMETER})
16 @Retention(RetentionPolicy.RUNTIME)
17 public @interface JwtParam {
18 }