1 |
|
|
2 |
|
package org.kuali.student.security.policy.dto; |
3 |
|
|
4 |
|
import java.util.HashMap; |
5 |
|
import java.util.Map; |
6 |
|
import javax.xml.bind.annotation.XmlAccessType; |
7 |
|
import javax.xml.bind.annotation.XmlAccessorType; |
8 |
|
import javax.xml.bind.annotation.XmlAnyAttribute; |
9 |
|
import javax.xml.bind.annotation.XmlAttribute; |
10 |
|
import javax.xml.bind.annotation.XmlRootElement; |
11 |
|
import javax.xml.bind.annotation.XmlSchemaType; |
12 |
|
import javax.xml.bind.annotation.XmlType; |
13 |
|
import javax.xml.namespace.QName; |
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
@XmlAccessorType(XmlAccessType.FIELD) |
37 |
|
@XmlType(name = "") |
38 |
|
@XmlRootElement(name = "PolicyReference") |
|
|
| 0% |
Uncovered Elements: 18 (18) |
Complexity: 8 |
Complexity Density: 0.89 |
|
39 |
|
public class PolicyReference { |
40 |
|
|
41 |
|
@XmlAttribute(name = "URI", required = true) |
42 |
|
@XmlSchemaType(name = "anyURI") |
43 |
|
protected String uri; |
44 |
|
@XmlAttribute(name = "Digest") |
45 |
|
protected byte[] digest; |
46 |
|
@XmlAttribute(name = "DigestAlgorithm") |
47 |
|
@XmlSchemaType(name = "anyURI") |
48 |
|
protected String digestAlgorithm; |
49 |
|
@XmlAnyAttribute |
50 |
|
private Map<QName, String> otherAttributes = new HashMap<QName, String>(); |
51 |
|
|
52 |
|
|
53 |
|
|
54 |
|
|
55 |
|
@return |
56 |
|
|
57 |
|
@link |
58 |
|
|
59 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
60 |
0
|
public String getURI() {... |
61 |
0
|
return uri; |
62 |
|
} |
63 |
|
|
64 |
|
|
65 |
|
|
66 |
|
|
67 |
|
@param |
68 |
|
|
69 |
|
@link |
70 |
|
|
71 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
72 |
0
|
public void setURI(String value) {... |
73 |
0
|
this.uri = value; |
74 |
|
} |
75 |
|
|
76 |
|
|
77 |
|
|
78 |
|
|
79 |
|
@return |
80 |
|
|
81 |
|
|
82 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
83 |
0
|
public byte[] getDigest() {... |
84 |
0
|
return digest; |
85 |
|
} |
86 |
|
|
87 |
|
|
88 |
|
|
89 |
|
|
90 |
|
@param |
91 |
|
|
92 |
|
|
93 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
94 |
0
|
public void setDigest(byte[] value) {... |
95 |
0
|
this.digest = ((byte[]) value); |
96 |
|
} |
97 |
|
|
98 |
|
|
99 |
|
|
100 |
|
|
101 |
|
@return |
102 |
|
|
103 |
|
@link |
104 |
|
|
105 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
106 |
0
|
public String getDigestAlgorithm() {... |
107 |
0
|
if (digestAlgorithm == null) { |
108 |
0
|
return "http://schemas.xmlsoap.org/ws/2004/09/policy/Sha1Exc"; |
109 |
|
} else { |
110 |
0
|
return digestAlgorithm; |
111 |
|
} |
112 |
|
} |
113 |
|
|
114 |
|
|
115 |
|
|
116 |
|
|
117 |
|
@param |
118 |
|
|
119 |
|
@link |
120 |
|
|
121 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
122 |
0
|
public void setDigestAlgorithm(String value) {... |
123 |
0
|
this.digestAlgorithm = value; |
124 |
|
} |
125 |
|
|
126 |
|
|
127 |
|
|
128 |
|
|
129 |
|
|
130 |
|
|
131 |
|
|
132 |
|
|
133 |
|
|
134 |
|
|
135 |
|
|
136 |
|
|
137 |
|
@return |
138 |
|
|
139 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
140 |
0
|
public Map<QName, String> getOtherAttributes() {... |
141 |
0
|
return otherAttributes; |
142 |
|
} |
143 |
|
|
144 |
|
} |