{"id":54564,"library":"java-jwt","title":"Auth0 Java JWT","description":"Java library for creating and verifying JSON Web Tokens (JWT) on the Auth0 platform.","status":"active","version":"4.5.1","language":"java","source_language":null,"source_url":"https://github.com/auth0/java-jwt","tags":["jwt","auth0","authentication","token"],"install":[{"cmd":"<dependency>\n  <groupId>com.auth0</groupId>\n  <artifactId>java-jwt</artifactId>\n  <version>4.5.1</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'com.auth0:java-jwt:4.5.1'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"JWT","correct":"com.auth0.jwt.JWT"}],"quickstart":{"code":"import com.auth0.jwt.JWT;\nimport com.auth0.jwt.algorithms.Algorithm;\n\npublic class Main {\n    public static void main(String[] args) {\n        String token = JWT.create()\n            .withSubject(\"1234567890\")\n            .sign(Algorithm.HMAC256(\"secret\"));\n        System.out.println(token);\n    }\n}","lang":"java","description":"Creates a JWT with HMAC256 signing."},"warnings":[{"fix":"Use a strong, randomly generated secret key.","message":"Algorithm.HMAC256 expects a secret key of sufficient length (at least 256 bits).","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'auth0':1,16,19 'authent':20 'creat':7 'java':2,4 'json':10 'jwt':3,13,18 'librari':5 'platform':17 'token':12,21 'verifi':9 'web':11","created_at":"2026-06-15T09:14:06.501895+00:00","updated_at":"2026-06-15T09:14:06.501895+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/auth0/java-jwt","github":"https://github.com/auth0/java-jwt","docs":"https://appdoc.app/artifact/com.auth0/java-jwt/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["auth"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}