View Javadoc
1   package org.argeo.cms.integration;
2   
3   import java.io.Serializable;
4   
5   import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
6   
7   /** A serializable descriptor of a token. */
8   @JsonIgnoreProperties(ignoreUnknown = true)
9   public class TokenDescriptor implements Serializable {
10  	private static final long serialVersionUID = -6607393871416803324L;
11  
12  	private String token;
13  	private String username;
14  	private String expiryDate;
15  //	private Set<String> roles;
16  
17  	public String getToken() {
18  		return token;
19  	}
20  
21  	public void setToken(String token) {
22  		this.token = token;
23  	}
24  
25  	public String getUsername() {
26  		return username;
27  	}
28  
29  	public void setUsername(String username) {
30  		this.username = username;
31  	}
32  
33  //	public Set<String> getRoles() {
34  //		return roles;
35  //	}
36  //
37  //	public void setRoles(Set<String> roles) {
38  //		this.roles = roles;
39  //	}
40  
41  	public String getExpiryDate() {
42  		return expiryDate;
43  	}
44  
45  	public void setExpiryDate(String expiryDate) {
46  		this.expiryDate = expiryDate;
47  	}
48  
49  }