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

spring.turbo.module.jwt.alg.KeyPairJwtSigner Maven / Gradle / Ivy

The newest version!
package spring.turbo.module.jwt.alg;

import org.springframework.core.style.ToStringCreator;

import java.security.KeyPair;

/**
 * 封装了{@link KeyPair}的签名器
 *
 * @param keyPair 公私钥对
 * @author 应卓
 * @since 3.3.2
 */
public record KeyPairJwtSigner(KeyPair keyPair) implements JwtSigner {

    @Override
    public String toString() {
        var creator = new ToStringCreator(this);
        return creator.toString();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy