be.nille.jwt.components.verifier.JWTSecretKeyVerifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jwt-components Show documentation
Show all versions of jwt-components Show documentation
Useful components that will enable you to work with JWTs
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