1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.opensaml.saml2.core;
18
19 import java.util.List;
20
21 import javax.xml.namespace.QName;
22
23 import org.opensaml.common.SAMLObject;
24 import org.opensaml.common.xml.SAMLConstants;
25 import org.opensaml.xml.AttributeExtensibleXMLObject;
26 import org.opensaml.xml.XMLObject;
27
28
29
30
31 public interface Attribute extends SAMLObject, AttributeExtensibleXMLObject {
32
33
34 public static final String DEFAULT_ELEMENT_LOCAL_NAME = "Attribute";
35
36
37 public static final QName DEFAULT_ELEMENT_NAME = new QName(SAMLConstants.SAML20_NS, DEFAULT_ELEMENT_LOCAL_NAME,
38 SAMLConstants.SAML20_PREFIX);
39
40
41 public static final String TYPE_LOCAL_NAME = "AttributeType";
42
43
44 public static final QName TYPE_NAME = new QName(SAMLConstants.SAML20_NS, TYPE_LOCAL_NAME,
45 SAMLConstants.SAML20_PREFIX);
46
47
48 public static final String NAME_ATTTRIB_NAME = "Name";
49
50
51 public static final String NAME_FORMAT_ATTRIB_NAME = "NameFormat";
52
53
54 public static final String FRIENDLY_NAME_ATTRIB_NAME = "FriendlyName";
55
56
57 public static final String UNSPECIFIED = "urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified";
58
59
60 public static final String URI_REFERENCE = "urn:oasis:names:tc:SAML:2.0:attrname-format:uri";
61
62
63 public static final String BASIC = "urn:oasis:names:tc:SAML:2.0:attrname-format:basic";
64
65
66
67
68
69
70 public String getName();
71
72
73
74
75
76
77 public void setName(String name);
78
79
80
81
82
83
84 public String getNameFormat();
85
86
87
88
89
90
91 public void setNameFormat(String nameFormat);
92
93
94
95
96
97
98 public String getFriendlyName();
99
100
101
102
103
104
105 public void setFriendlyName(String friendlyName);
106
107
108
109
110
111
112 public List<XMLObject> getAttributeValues();
113 }