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

Method require

lib/src/main/java/com/auth0/jwt/JWT.java:62–64  ·  view source on GitHub ↗

Returns a Verification builder with the algorithm to be used to validate token signature. @param algorithm that will be used to verify the token's signature. @return Verification builder @throws IllegalArgumentException if the provided algorithm is null.

(Algorithm algorithm)

Source from the content-addressed store, hash-verified

60 * @throws IllegalArgumentException if the provided algorithm is null.
61 */
62 public static Verification require(Algorithm algorithm) {
63 return JWTVerifier.init(algorithm);
64 }
65
66 /**
67 * Returns a Json Web Token builder used to create and sign tokens.

Calls 1

initMethod · 0.95