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 {
5252class ManagementSecurityConfig extends ApplicationProperties {
5353 ManagementSecurityConfig ( ) { this .getNameElement ( ) .getName ( ) = "management.security.enabled" }
5454
55+ /** Gets the whitespace-trimmed value of this property. */
5556 string getValue ( ) { result = this .getValueElement ( ) .getValue ( ) .trim ( ) }
5657
58+ /** Holds if `management.security.enabled` is set to `false`. */
5759 predicate hasSecurityDisabled ( ) { getValue ( ) = "false" }
5860
61+ /** Holds if `management.security.enabled` is set to `true`. */
5962 predicate hasSecurityEnabled ( ) { getValue ( ) = "true" }
6063}
6164
@@ -65,6 +68,7 @@ class ManagementEndPointInclude extends ApplicationProperties {
6568 this .getNameElement ( ) .getName ( ) = "management.endpoints.web.exposure.include"
6669 }
6770
71+ /** Gets the whitespace-trimmed value of this property. */
6872 string getValue ( ) { result = this .getValueElement ( ) .getValue ( ) .trim ( ) }
6973}
7074
You can’t perform that action at this time.
0 commit comments