com.codingapi.springboot.security.jwt.JWTTokenGatewayImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of springboot-starter-security Show documentation
Show all versions of springboot-starter-security Show documentation
springboot-starter-security project for Spring Boot
package com.codingapi.springboot.security.jwt;
import com.codingapi.springboot.security.gateway.Token;
import com.codingapi.springboot.security.gateway.TokenGateway;
import java.util.List;
public class JWTTokenGatewayImpl implements TokenGateway {
private final JwtTokenGateway jwtTokenGateway;
public JWTTokenGatewayImpl(JwtTokenGateway jwtTokenGateway) {
this.jwtTokenGateway = jwtTokenGateway;
}
@Override
public Token create(String username, String password, List authorities, String extra) {
return jwtTokenGateway.create(username, password, authorities, extra);
}
@Override
public Token parser(String sign) {
return jwtTokenGateway.parser(sign);
}
}