Code example for Principal

Methods: getName

0
	public DemoPrincipal(String username) {
		this(username, null);
	} 
 
	public DemoPrincipal(Principal principal) {
		this(principal.getName(), null);
	} 
 
	public DemoPrincipal(Principal principal, String[] roles) {
		this(principal.getName(), roles);
	} 
 
	public String getUsername() {
		return username;
	} 
 
	@Override 
	public String getName() {
		return username;
	}