All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ec.gob.senescyt.sniese.commons.security.shiro.BearerToken Maven / Gradle / Ivy

There is a newer version: 2.0.5
Show newest version
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