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

com.codingapi.springboot.security.redis.RedisTokenGatewayImpl Maven / Gradle / Ivy

package com.codingapi.springboot.security.redis;

import com.codingapi.springboot.security.gateway.Token;
import com.codingapi.springboot.security.gateway.TokenGateway;

import java.util.List;

public class RedisTokenGatewayImpl implements TokenGateway {

    private final RedisTokenGateway redisTokenGateway;

    public RedisTokenGatewayImpl(RedisTokenGateway redisTokenGateway) {
        this.redisTokenGateway = redisTokenGateway;
    }

    @Override
    public Token create(String username, String iv, List authorities, String extra) {
        return redisTokenGateway.create(username, iv, authorities, extra);
    }

    @Override
    public Token parser(String sign) {
        return redisTokenGateway.parser(sign);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy