All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fr.smallcrew.security.web.AuthenticatedUserPublic Maven / Gradle / Ivy

Go to download

Foundation of all smallcrew's projects needing authenticated users and role management

The newest version!
package fr.smallcrew.security.web;

import org.springframework.security.core.GrantedAuthority;

import javax.xml.bind.annotation.XmlRootElement;
import java.util.Collection;

@XmlRootElement
public class AuthenticatedUserPublic {
  private String name;
  private Collection authorities;

  public AuthenticatedUserPublic(String name, Collection authorities) {
    this.name = name;
    this.authorities = authorities;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public Collection getAuthorities() {
    return authorities;
  }

  public void setAuthorities(Collection authorities) {
    this.authorities = authorities;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy