1 | <?php |
||
19 | class CILogonResourceOwner implements ResourceOwnerInterface |
||
20 | { |
||
21 | /** |
||
22 | * Raw response |
||
23 | * |
||
24 | * @var array |
||
25 | */ |
||
26 | protected $response; |
||
27 | |||
28 | /** |
||
29 | * Creates new resource owner. |
||
30 | * |
||
31 | * @param array $response |
||
32 | */ |
||
33 | public function __construct(array $response = array()) |
||
37 | |||
38 | /** |
||
39 | * Get resource owner id. |
||
40 | * |
||
41 | * @return string |
||
42 | */ |
||
43 | public function getId() |
||
47 | |||
48 | /** |
||
49 | * Get resource owner display name. |
||
50 | * |
||
51 | * @return string |
||
52 | */ |
||
53 | public function getName() |
||
57 | |||
58 | /** |
||
59 | * Get resource owner given (first) name. |
||
60 | * |
||
61 | * @return string |
||
62 | */ |
||
63 | public function getGivenName() |
||
67 | |||
68 | /** |
||
69 | * Get resource owner given (first) name. |
||
70 | * Alias for getGivenName(). |
||
71 | * |
||
72 | * @return string |
||
73 | */ |
||
74 | public function getFirstName() |
||
78 | |||
79 | /** |
||
80 | * Get resource owner family (last) name. |
||
81 | * |
||
82 | * @return string |
||
83 | */ |
||
84 | public function getFamilyName() |
||
88 | |||
89 | /** |
||
90 | * Get resource owner family (last) name. |
||
91 | * Alias for getFamilyName(); |
||
92 | * |
||
93 | * @return string |
||
94 | */ |
||
95 | public function getLastName() |
||
99 | |||
100 | /** |
||
101 | * Get resource owner eduPersonPrincipalName. |
||
102 | * |
||
103 | * @return string |
||
104 | */ |
||
105 | public function getEPPN() |
||
109 | |||
110 | /** |
||
111 | * Get resource owner eduPersonTargetedID. |
||
112 | * |
||
113 | * @return string |
||
114 | */ |
||
115 | public function getEPTID() |
||
119 | |||
120 | /** |
||
121 | * Get resource owner email address. |
||
122 | * |
||
123 | * @return string |
||
124 | */ |
||
125 | public function getEmail() |
||
129 | |||
130 | /** |
||
131 | * Get the Identity Provider entityId the resource owner used for |
||
132 | * authentication. |
||
133 | * |
||
134 | * @return string |
||
135 | */ |
||
136 | public function getIdP() |
||
140 | |||
141 | /** |
||
142 | * Get the Identity Provider display name the resource owner used |
||
143 | * for authentication. |
||
144 | * |
||
145 | * @return string |
||
146 | */ |
||
147 | public function getIdPName() |
||
151 | |||
152 | /** |
||
153 | * Get resource owner organizational unit. |
||
154 | * |
||
155 | * @return string |
||
156 | */ |
||
157 | public function getOU() |
||
161 | |||
162 | /** |
||
163 | * Get resource owner (scoped) affiliation. |
||
164 | * |
||
165 | * @return string |
||
166 | */ |
||
167 | public function getAffiliation() |
||
171 | |||
172 | /** |
||
173 | * Return all of the owner details available as an array. |
||
174 | * |
||
175 | * @return array |
||
176 | */ |
||
177 | public function toArray() |
||
181 | } |
||
182 |