com.yammer.dropwizard.authenticator.User Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dropwizard-auth-ldap Show documentation
Show all versions of dropwizard-auth-ldap Show documentation
Dropwizard Authentication Module for LDAP using JNDI
package com.yammer.dropwizard.authenticator;
import java.security.Principal;
import java.util.Set;
public class User implements Principal {
private final String name;
private final Set roles;
public User(String name, Set roles) {
this.name = name;
this.roles = roles;
}
@Override
public String getName() {
return name;
}
public Set getRoles() {
return roles;
}
}