Buckets:

download
raw
3.31 kB
{
"role_mappings": [
{
"role": "Subject",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "The repo is a Spring Boot starter library with no in-repo client (UI/SDK/CLI) that sends the Bearer token; the caller is outside the repo. Only test classes exist besides the library/autoconfig code."
},
{
"role": "Enforcer",
"status": "present",
"symbol": "JWTFilter",
"file": "jwt-spring-boot-library/src/main/java/de/coderspack/spring/boot/jwt/library/JWTFilter.java",
"lines": "22",
"notes": "Servlet filter installed into the Spring Security chain by JWTConfigurer.configure (JWTConfigurer.java:23, addFilterBefore UsernamePasswordAuthenticationFilter) and exposed as a bean in JwtConfiguration.java:34. doFilter (line 35) resolves the Bearer token from the configured header and calls tokenFactory.validateToken (line 41); on success it sets the Authentication in the SecurityContext, otherwise the request proceeds unauthenticated and is rejected downstream by Spring Security (JwtAuthenticationEntryPoint returns 401)."
},
{
"role": "Verifier",
"status": "present",
"symbol": "validateToken",
"file": "jwt-spring-boot-library/src/main/java/de/coderspack/spring/boot/jwt/library/factory/TokenFactory.java",
"lines": "81",
"notes": "Called by the Enforcer JWTFilter.doFilter at JWTFilter.java:41; parses/verifies the JWS with the HMAC key and returns true/false, catching signature, malformed, expired and unsupported errors. The principal is then extracted by TokenFactory.getAuthentication (TokenFactory.java:65, called at JWTFilter.java:42), which shares the work."
},
{
"role": "Key manager",
"status": "present",
"symbol": "key",
"file": "jwt-spring-boot-library/src/main/java/de/coderspack/spring/boot/jwt/library/factory/TokenFactory.java",
"lines": "29",
"notes": "Verifier validateToken uses the field via setSigningKey(key) at TokenFactory.java:83. The field is populated in the constructor (line 35) with Keys.hmacShaKeyFor(Decoders.BASE64.decode(base64Secret)), where base64Secret comes from the jwt.base64-secret config property (JwtProperties.java:15, passed in JwtConfiguration.java:23)."
},
{
"role": "Cryptographer",
"status": "external",
"symbol": "parseClaimsJws",
"file": "jwt-spring-boot-library/src/main/java/de/coderspack/spring/boot/jwt/library/factory/TokenFactory.java",
"lines": "83",
"notes": "Verifier validateToken calls jjwt (io.jsonwebtoken) Jwts.parser().setSigningKey(key).parseClaimsJws(authToken) at TokenFactory.java:83, which verifies the HMAC (HS512) signature and expiry. The same library signs tokens at issuance via signWith(key, SignatureAlgorithm.HS512) at TokenFactory.java:60 (issuing sub-flow)."
},
{
"role": "System",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "Library/starter repo: after JWTFilter.doFilter passes the request on (JWTFilter.java:49) there is no in-repo protected business handler; CurrentJwtUser and JwtAuthenticationManager (login/token issuing) are helpers, not the protected action. Searched both modules' main sources."
}
]
}

Xet Storage Details

Size:
3.31 kB
·
Xet hash:
bfdc6d007f4b2e99b6325940f15c49e20e5c1f1484d75f47e2606b8eaeb6cb63

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.