57 lines
987 B
Java
57 lines
987 B
Java
package eu.eudat.models.security;
|
|
|
|
import java.util.Date;
|
|
import java.util.Set;
|
|
import java.util.UUID;
|
|
|
|
/**
|
|
* Created by ikalyvas on 12/15/2017.
|
|
*/
|
|
public class Principal {
|
|
private UUID id;
|
|
private UUID token;
|
|
private String name;
|
|
private Date expiresAt;
|
|
private Set<Integer> roles;
|
|
|
|
public UUID getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(UUID id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public UUID getToken() {
|
|
return token;
|
|
}
|
|
|
|
public void setToken(UUID token) {
|
|
this.token = token;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public Date getExpiresAt() {
|
|
return expiresAt;
|
|
}
|
|
|
|
public void setExpiresAt(Date expiresAt) {
|
|
this.expiresAt = expiresAt;
|
|
}
|
|
|
|
public Set<Integer> getRoles() {
|
|
return roles;
|
|
}
|
|
|
|
public void setRoles(Set<Integer> roles) {
|
|
this.roles = roles;
|
|
}
|
|
}
|