mirror of https://github.com/jacekkow/keycloak-protocol-cas

Matthias Piepkorn
2017-01-27 2e3b4dea824af204c49ee3310896faf6d107a8c8
commit | author | age
513246 1 package org.keycloak.protocol.cas.representations;
MP 2
3 import org.keycloak.protocol.cas.utils.AttributesMapAdapter;
4
5 import javax.xml.bind.annotation.*;
6 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
7 import java.util.List;
8 import java.util.Map;
9
10 @XmlAccessorType(XmlAccessType.FIELD)
11 public class CasServiceResponseAuthenticationSuccess {
12     private String user;
13     private String proxyGrantingTicket;
14     @XmlElementWrapper
15     @XmlElement(name="proxy")
16     private List<String> proxies;
17     @XmlJavaTypeAdapter(AttributesMapAdapter.class)
18     private Map<String, Object> attributes;
19
20     public String getUser() {
21         return this.user;
22     }
23
24     public void setUser(final String user) {
25         this.user = user;
26     }
27
28     public String getProxyGrantingTicket() {
29         return this.proxyGrantingTicket;
30     }
31
32     public void setProxyGrantingTicket(final String proxyGrantingTicket) {
33         this.proxyGrantingTicket = proxyGrantingTicket;
34     }
35
36     public List<String> getProxies() {
37         return this.proxies;
38     }
39
40     public void setProxies(final List<String> proxies) {
41         this.proxies = proxies;
42     }
43
44     public Map<String, Object> getAttributes() {
45         return this.attributes;
46     }
47
48     public void setAttributes(final Map<String, Object> attributes) {
49         this.attributes = attributes;
50     }
51 }