{"id":54595,"library":"jjwt-api","title":"JJWT API","description":"Provides the API for creating and verifying JSON Web Tokens (JWT) on the JVM and Android.","status":"active","version":"0.13.0","language":"java","source_language":null,"source_url":"https://github.com/jwtk/jjwt","tags":["jwt","json","web-token","security","authentication"],"install":[{"cmd":"<dependency>\n  <groupId>io.jsonwebtoken</groupId>\n  <artifactId>jjwt-api</artifactId>\n  <version>0.13.0</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'io.jsonwebtoken:jjwt-api:0.13.0'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"Jwts","correct":"io.jsonwebtoken.Jwts"}],"quickstart":{"code":"import io.jsonwebtoken.Jwts;\nimport io.jsonwebtoken.SignatureAlgorithm;\nimport io.jsonwebtoken.security.Keys;\nimport java.security.Key;\n\npublic class Example {\n    public static void main(String[] args) {\n        Key key = Keys.secretKeyFor(SignatureAlgorithm.HS256);\n        String jws = Jwts.builder().setSubject(\"user123\").signWith(key).compact();\n        System.out.println(\"JWT: \" + jws);\n    }\n}","lang":"java","description":"Creates a signed JWT with a subject claim using JJWT."},"warnings":[{"fix":"Update code to use Keys.secretKeyFor() or Keys.pairFor() and pass the key to signWith().","message":"JJWT 0.12.x introduced breaking changes in the API (e.g., Jwts.builder() now requires explicit key).","severity":"breaking","affected_versions":">=0.12.0"}],"env_vars":null,"search_vec":"'android':18 'api':2,5 'authent':25 'creat':7 'jjwt':1 'json':10,20 'jvm':16 'jwt':13,19 'provid':3 'secur':24 'token':12,23 'verifi':9 'web':11,22 'web-token':21","created_at":"2026-06-15T09:15:35.499293+00:00","updated_at":"2026-06-15T09:15:35.499293+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/jwtk/jjwt","github":"https://github.com/jwtk/jjwt","docs":"https://appdoc.app/artifact/io.jsonwebtoken/jjwt-api/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["auth","crypto"],"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}}