com.mercateo.spring.security.jwt.JwtAuthenticationToken Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-security-jwt Show documentation
Show all versions of spring-security-jwt Show documentation
JWT authentication with spring security
package com.mercateo.spring.security.jwt;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
public class JwtAuthenticationToken extends UsernamePasswordAuthenticationToken {
private String token;
public JwtAuthenticationToken(String token) {
super(null, null);
this.token = token;
}
public String getToken() {
return token;
}
@Override
public Object getCredentials() {
return null;
}
@Override
public Object getPrincipal() {
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy