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

be.nille.jwt.components.verifier.JWTSecretKeyVerifier 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.verifier;

import com.auth0.jwt.JWTVerifyException;
import java.io.IOException;
import java.security.GeneralSecurityException;
import java.util.Map;

/**
 * @author nholvoet
 */
public class JWTSecretKeyVerifier extends JWTVerifier {

    private final com.auth0.jwt.JWTVerifier verifier;
    
    public JWTSecretKeyVerifier(final String secret){
        verifier = new com.auth0.jwt.JWTVerifier(secret);
    }
    
    
    @Override
    protected Map internalVerify(String tokenValue) throws IOException, GeneralSecurityException, JWTVerifyException {
        return verifier.verify(tokenValue);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy