1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.opensaml.ws.wspolicy.impl;
19
20 import java.util.List;
21
22 import org.opensaml.ws.wspolicy.PolicyReference;
23 import org.opensaml.xml.XMLObject;
24 import org.opensaml.xml.util.AttributeMap;
25
26
27
28
29
30 public class PolicyReferenceImpl extends AbstractWSPolicyObject implements PolicyReference {
31
32
33 private String uri;
34
35
36 private String digest;
37
38
39 private String digestAlgorithm;
40
41
42 private AttributeMap unknownAttributes;
43
44
45
46
47
48
49
50
51 public PolicyReferenceImpl(String namespaceURI, String elementLocalName, String namespacePrefix) {
52 super(namespaceURI, elementLocalName, namespacePrefix);
53 unknownAttributes = new AttributeMap(this);
54 }
55
56
57 public String getDigest() {
58 return digest;
59 }
60
61
62 public String getDigestAlgorithm() {
63 return digestAlgorithm;
64 }
65
66
67 public String getURI() {
68 return uri;
69 }
70
71
72 public void setDigest(String newDigest) {
73 digest = prepareForAssignment(digest, newDigest);
74 }
75
76
77 public void setDigestAlgorithm(String newDigestAlgorithm) {
78 digestAlgorithm = prepareForAssignment(digestAlgorithm, newDigestAlgorithm);
79 }
80
81
82 public void setURI(String newURI) {
83 uri = prepareForAssignment(uri, newURI);
84 }
85
86
87 public AttributeMap getUnknownAttributes() {
88 return unknownAttributes;
89 }
90
91
92 public List<XMLObject> getOrderedChildren() {
93 return null;
94 }
95
96 }