View Javadoc

1   package com.atlassian.asap.core.server.jersey;
2   
3   import java.lang.annotation.ElementType;
4   import java.lang.annotation.Retention;
5   import java.lang.annotation.RetentionPolicy;
6   import java.lang.annotation.Target;
7   
8   @Target({ElementType.PARAMETER, ElementType.FIELD})
9   @Retention(RetentionPolicy.RUNTIME)
10  public @interface JwtAuth {
11      /**
12       * Only the subjects explicitly listed will be authorized.
13       */
14      String[] authorizedSubjects();
15  
16      /**
17       * Only the issuers explicitly listed will be authorized. If omitted/empty, the list of authorized issuers will
18       * be equal to the list of authorized subjects ({@link #authorizedSubjects()}.
19       */
20      String[] authorizedIssuers() default {};
21  }