1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.shiro.spring.security.interceptor;
20
21 import org.apache.shiro.authz.annotation.*;
22
23
24
25
26 public class DefaultTestService implements TestService {
27
28 @RequiresGuest
29 public void guestImplementation() {
30 }
31 public void guestInterface() {
32 }
33
34 @RequiresUser
35 public void userImplementation() {
36 }
37 public void userInterface() {
38 }
39
40 @RequiresAuthentication
41 public void authenticatedImplementation() {
42 }
43 public void authenticatedInterface() {
44 }
45
46 @RequiresRoles("test")
47 public void roleImplementation() {
48 }
49 public void roleInterface() {
50 }
51
52 @RequiresPermissions("test:execute")
53 public void permissionImplementation() {
54 }
55 public void permissionInterface() {
56 }
57 }