Buckets:

download
raw
2.34 kB
{
"role_mappings": [
{
"role": "Subject",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No in-repo client sends a JWT; the HTTP helpers under src/main/java/com/jenson/tool/http never set an Authorization/bearer token. The caller would be outside this utility library."
},
{
"role": "Enforcer",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No filter, interceptor or security config exists in the repo; SystemUtil.java:12 mentions a 'JwtAuthFilter' but that class is not in this repo, and nothing calls JWTUtil.getContext (grep for JWTUtil in src/main finds only its declaration)."
},
{
"role": "Verifier",
"status": "present",
"symbol": "getContext",
"file": "src/main/java/com/jenson/tool/util/JWTUtil.java",
"lines": "39",
"notes": "Anchor chosen from the Decision point since no Enforcer exists. getContext builds an auth0 JWTVerifier with HMAC256(secretKey), verifies the token (line 43) and returns its claims as the principal map; it is a library helper that no in-repo code invokes."
},
{
"role": "Key manager",
"status": "present",
"symbol": "secretKey",
"file": "src/main/java/com/jenson/tool/util/JWTUtil.java",
"lines": "14",
"notes": "Reached from getContext (JWTUtil.java:41), which passes secretKey to Algorithm.HMAC256. It is a hard-coded constant \"jenson\", which is weak and shared with getToken (line 30)."
},
{
"role": "Cryptographer",
"status": "external",
"symbol": "verify",
"file": "src/main/java/com/jenson/tool/util/JWTUtil.java",
"lines": "43",
"notes": "Reached from getContext: JWT.require(Algorithm.HMAC256(secretKey)).build() at JWTUtil.java:41 creates an auth0 java-jwt JWTVerifier, whose verify(token) at line 43 checks the HMAC-SHA256 signature and expiry. The same library signs tokens in getToken (line 30)."
},
{
"role": "System",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "This repo is a utility library with no protected business handler; SuperController (base/SuperController.java:12) is a generic base class with no enforcer wired to it (rule 6.1.7)."
}
]
}

Xet Storage Details

Size:
2.34 kB
·
Xet hash:
e9680ab2d0cbe7621a5c69d1033e25c7c1b1aea69b13a5088acc91a9ca4803bf

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