ec.gob.senescyt.sniese.commons.security.PrincipalProviderImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sniese-commons Show documentation
Show all versions of sniese-commons Show documentation
Librería que contiene clases de uso comun para sniese hechos en dropwizard
package ec.gob.senescyt.sniese.commons.security;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;
public class PrincipalProviderImpl implements PrincipalProvider {
@Override
public Subject obtenerUsuarioAutenticado() {
return SecurityUtils.getSubject();
}
@Override
public Usuario obtenerUsuario() {
return (Usuario) SecurityUtils.getSubject().getPrincipal();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy