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

be.nille.jwt.components.signer.JWTSecretKeySigner Maven / Gradle / Ivy

The newest version!
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package be.nille.jwt.components.signer;

import java.util.Map;

/**
 * @author nholvoet
 */
public class JWTSecretKeySigner extends JWTSigner {

    private final com.auth0.jwt.JWTSigner signer;
    
    public JWTSecretKeySigner(final String secret){
        signer = new com.auth0.jwt.JWTSigner(secret);
    }

    @Override
    protected String internalSign(Map claimMap) {
        return signer.sign(claimMap);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy