Buckets:

download
raw
3.16 kB
{
"role_mappings": [
{
"role": "Subject",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No in-repo client code sends the Bearer token to the JwtFilter (src/main/java/com/secureflux/security/jwt/JwtFilter.java:45 reads the Authorization header); the repo is a security starter library with no UI/SDK, so the caller is outside the repo."
},
{
"role": "Enforcer",
"status": "present",
"symbol": "doFilterInternal",
"file": "src/main/java/com/secureflux/security/jwt/JwtFilter.java",
"lines": "31",
"notes": "doFilterInternal in JwtFilter (OncePerRequestFilter) extracts the Bearer token, calls jwtUtil.validateToken (JwtFilter.java:51) and sets the SecurityContext authentication; registered via http.addFilterBefore(jwtFilter, ...) in AuthConfiguration.securityFilterChain (AuthConfiguration.java:52), whose anyRequest().authenticated() rule blocks unauthenticated requests. Skips /auth paths."
},
{
"role": "Verifier",
"status": "present",
"symbol": "validateToken",
"file": "src/main/java/com/secureflux/security/jwt/JwtUtil.java",
"lines": "53",
"notes": "Reached from JwtFilter.doFilterInternal (JwtFilter.java:51). validateToken in JwtUtil extracts the subject via extractUsername -> extractAllClaims (JwtUtil.java:42, which parses and verifies the signed JWT) and checks username match and expiry (isTokenExpired, JwtUtil.java:58). The filter also calls extractUsername/extractRole/extractUserId (JwtFilter.java:48-50) to obtain the principal; signature failures throw from parseClaimsJws."
},
{
"role": "Key manager",
"status": "present",
"symbol": "getSigningKey",
"file": "src/main/java/com/secureflux/security/jwt/JwtUtil.java",
"lines": "78",
"notes": "Called by the Verifier path in extractAllClaims (JwtUtil.java:45, setSigningKey(getSigningKey())). getSigningKey Base64-decodes the secret from SecureFluxSecurityProperties.jwtSecret (config key secureflux.security.jwt-secret, loaded in the JwtUtil constructor) and builds an HMAC key with Keys.hmacShaKeyFor."
},
{
"role": "Cryptographer",
"status": "external",
"symbol": "parseClaimsJws",
"file": "src/main/java/com/secureflux/security/jwt/JwtUtil.java",
"lines": "47",
"notes": "Called in JwtUtil.extractAllClaims (JwtUtil.java:42), reached from validateToken/extractUsername. jjwt (io.jsonwebtoken Jwts.parser().setSigningKey(...).build().parseClaimsJws) verifies the HS256 HMAC signature; token generation signs with signWith(..., HS256) at JwtUtil.java:39."
},
{
"role": "System",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "Starter library: no protected business handler in-repo behind JwtFilter. The only controller, SecureFluxAuthController (signup/login, controller/SecureFluxAuthController.java), is under /auth and is bypassed by the filter (JwtFilter.java:41) and permitAll in AuthConfiguration.java:57; it is the token-issuing flow, not a protected action."
}
]
}

Xet Storage Details

Size:
3.16 kB
·
Xet hash:
e58800b299c99169c31e4aeab7f18357a3655c8e84cd647928ae640843e90ba4

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