com.pinterest.doctorkafka.security.UserPrincipal Maven / Gradle / Ivy
package com.pinterest.doctorkafka.security;
import java.security.Principal;
public class UserPrincipal implements Principal {
private String username;
public UserPrincipal(String username) {
this.username = username;
}
@Override
public String getName() {
return username;
}
@Override
public String toString() {
return "UserPrincipal [username=" + username + "]";
}
}