ec.gob.senescyt.sniese.commons.security.shiro.BearerToken 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.shiro;
import org.apache.shiro.authc.AuthenticationToken;
public class BearerToken implements AuthenticationToken {
private String token;
public BearerToken(String token) {
this.token = token;
}
@Override
public Object getPrincipal() {
return token;
}
@Override
public Object getCredentials() {
return token;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy