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

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