File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
java/ql/src/experimental/Security/CWE/CWE-016 Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -52,10 +52,13 @@ class ApplicationProperties extends ConfigPair {
52
52
class ManagementSecurityConfig extends ApplicationProperties {
53
53
ManagementSecurityConfig ( ) { this .getNameElement ( ) .getName ( ) = "management.security.enabled" }
54
54
55
+ /** Gets the whitespace-trimmed value of this property. */
55
56
string getValue ( ) { result = this .getValueElement ( ) .getValue ( ) .trim ( ) }
56
57
58
+ /** Holds if `management.security.enabled` is set to `false`. */
57
59
predicate hasSecurityDisabled ( ) { getValue ( ) = "false" }
58
60
61
+ /** Holds if `management.security.enabled` is set to `true`. */
59
62
predicate hasSecurityEnabled ( ) { getValue ( ) = "true" }
60
63
}
61
64
@@ -65,6 +68,7 @@ class ManagementEndPointInclude extends ApplicationProperties {
65
68
this .getNameElement ( ) .getName ( ) = "management.endpoints.web.exposure.include"
66
69
}
67
70
71
+ /** Gets the whitespace-trimmed value of this property. */
68
72
string getValue ( ) { result = this .getValueElement ( ) .getValue ( ) .trim ( ) }
69
73
}
70
74
You can’t perform that action at this time.
0 commit comments