MCPcopy Index your code
hub / github.com/auth0/java-jwt / JWTVerifier

Interface JWTVerifier

lib/src/main/java/com/auth0/jwt/interfaces/JWTVerifier.java:21–40  ·  view source on GitHub ↗

Used to verify the JWT for its signature and claims. Implementations must be thread-safe. Instances are created using Verification. try { JWTVerifier verifier = JWTVerifier.init(Algorithm.RSA256(publicKey, privateKey) .withIssuer("auth0") .build(); DecodedJ

Source from the content-addressed store, hash-verified

19 * </pre>
20 */
21public interface JWTVerifier {
22
23 /**
24 * Performs the verification against the given Token.
25 *
26 * @param token to verify.
27 * @return a verified and decoded JWT.
28 * @throws JWTVerificationException if any of the verification steps fail
29 */
30 DecodedJWT verify(String token) throws JWTVerificationException;
31
32 /**
33 * Performs the verification against the given {@link DecodedJWT}.
34 *
35 * @param jwt to verify.
36 * @return a verified and decoded JWT.
37 * @throws JWTVerificationException if any of the verification steps fail
38 */
39 DecodedJWT verify(DecodedJWT jwt) throws JWTVerificationException;
40}

Implementers 7

JWTVerifierlib/src/main/java/com/auth0/jwt/JWTVer
BaseVerificationlib/src/main/java/com/auth0/jwt/JWTVer
HMACAlgorithmlib/src/main/java/com/auth0/jwt/algori
RSAAlgorithmlib/src/main/java/com/auth0/jwt/algori
Algorithmlib/src/main/java/com/auth0/jwt/algori
NoneAlgorithmlib/src/main/java/com/auth0/jwt/algori
ECDSAAlgorithmlib/src/main/java/com/auth0/jwt/algori

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…