package org.gcube.common.authorization.library; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; @XmlRootElement @XmlAccessorType(XmlAccessType.FIELD) public class AuthorizationEntry { private String clientId; private List roles; private String context; private List bannedServices = new ArrayList(); protected AuthorizationEntry(){} public AuthorizationEntry(String clientId, List roles, String context) { super(); this.clientId = clientId; this.roles = roles; this.context = context; } public AuthorizationEntry(String userName, List roles, String scope, List bannedServices) { this(userName, roles, scope); this.bannedServices = bannedServices; } public String getClientId() { return clientId; } public List getRoles() { return roles; } public String getContext() { return context; } public List getBannedServices() { return bannedServices; } public void setBannedServices(List bannedServices) { this.bannedServices = bannedServices; } @Override public String toString() { return "AuthorizationEntry [clientId=" + clientId + ", roles=" + roles + ", context=" + context + " bannedServices "+ bannedServices+"]"; } }