net.optionfactory.spring.authentication.bearer.token.BearerToken Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of authentication-bearer-token Show documentation
Show all versions of authentication-bearer-token Show documentation
optionfactory-spring authentication-bearer-token
package net.optionfactory.spring.authentication.bearer.token;
import org.springframework.security.authentication.AbstractAuthenticationToken;
public class BearerToken extends AbstractAuthenticationToken {
private final String token;
public BearerToken(String token) {
super(null);
this.token = token;
super.setAuthenticated(false);
}
@Override
public String getCredentials() {
return token;
}
@Override
public Object getPrincipal() {
return token;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy