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

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