1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.student.common.ws.security; |
17 |
|
|
18 |
|
import java.security.Principal; |
19 |
|
|
20 |
|
import javax.xml.ws.WebServiceContext; |
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
@author |
27 |
|
|
28 |
|
|
|
|
| 0% |
Uncovered Elements: 10 (10) |
Complexity: 4 |
Complexity Density: 0.8 |
|
29 |
|
public abstract class PrincipalWrapper implements Principal{ |
30 |
|
|
31 |
|
protected Principal principal; |
32 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
33 |
0
|
public String getName(){... |
34 |
0
|
if (principal != null){ |
35 |
0
|
return principal.getName(); |
36 |
|
} |
37 |
0
|
return null; |
38 |
|
} |
39 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
40 |
0
|
public String getPersonId(){... |
41 |
0
|
return AuthenticationService.getPersonIdForUsername(getName()); |
42 |
|
} |
43 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
44 |
0
|
public Principal getPrincipal() {... |
45 |
0
|
return principal; |
46 |
|
} |
47 |
|
|
48 |
|
|
49 |
|
public abstract void setPrincipal(WebServiceContext wsContext); |
50 |
|
|
51 |
|
} |