import org.springframework.util.Assert;
/**
- * Maps groups defined in LDAP to roles for a specific user.
- */
-/*
- * public enum PCacheLDAPAuthority implements GrantedAuthority { ROLE_LDAP_USER;
- * public String getAuthority() { return name(); } }
+ * The class implements the standard granted authority for Spring Security Not
+ * used in the current version of ProteoCache
+ *
+ * @version 1.0 January 2014
+ *
+ * @author Alexaner Sherstnev
*/
+
public final class PCacheLDAPAuthority implements GrantedAuthority {
private static final long serialVersionUID = 1;
private String role = "ROLE_LDAP_USER";
public PCacheLDAPAuthority(String role) {
- Assert.hasText(role, "A granted authority textual representation is required");
+ Assert.hasText(role, "A text representation of the granted authority is required");
this.role = role;
}