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

spring.turbo.module.security.jwt.JwtTokenFactory Maven / Gradle / Ivy

There is a newer version: 1.2.3
Show newest version
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 *    ____             _            _____           _
 *   / ___| _ __  _ __(_)_ __   __ |_   _|   _ _ __| |__   ___
 *   \___ \| '_ \| '__| | '_ \ / _` || || | | | '__| '_ \ / _ \
 *    ___) | |_) | |  | | | | | (_| || || |_| | |  | |_) | (_) |
 *   |____/| .__/|_|  |_|_| |_|\__, ||_| \__,_|_|  |_.__/ \___/
 *         |_|                 |___/   https://github.com/yingzhuo/spring-turbo
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
package spring.turbo.module.security.jwt;

import org.springframework.lang.NonNull;

/**
 * JWT令牌工厂
 *
 * @author 应卓
 * @since 1.0.0
 */
@FunctionalInterface
public interface JwtTokenFactory {

    /**
     * 创建令牌
     *
     * @param metadata 令牌元数据信息
     * @return 令牌字符串
     * @see JwtTokenMetadata#builder()
     * @see JwtTokenMetadata.Builder
     */
    @NonNull
    public String create(@NonNull JwtTokenMetadata metadata);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy