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

spring.turbo.util.crypto.Keys Maven / Gradle / Ivy

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 *    ____             _            _____           _
 *   / ___| _ __  _ __(_)_ __   __ |_   _|   _ _ __| |__   ___
 *   \___ \| '_ \| '__| | '_ \ / _` || || | | | '__| '_ \ / _ \
 *    ___) | |_) | |  | | | | | (_| || || |_| | |  | |_) | (_) |
 *   |____/| .__/|_|  |_|_| |_|\__, ||_| \__,_|_|  |_.__/ \___/
 *         |_|                 |___/   https://github.com/yingzhuo/spring-turbo
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
package spring.turbo.util.crypto;

import java.io.Serializable;

/**
 * @author 应卓
 * @since 1.0.0
 */
public interface Keys extends Serializable {

    public String getBase64PublicKey();

    public String getBase64PrivateKey();

    public default byte[] getPublicKey() {
        return Base64.decode(getBase64PublicKey());
    }

    public default byte[] getPrivateKey() {
        return Base64.decode(getBase64PrivateKey());
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy