|
|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2002-2022 the original author or authors. |
|
|
|
* Copyright 2002-2024 the original author or authors. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -19,6 +19,7 @@ package org.springframework.security.web.aot.hint; |
|
|
|
import org.springframework.aot.hint.MemberCategory; |
|
|
|
import org.springframework.aot.hint.MemberCategory; |
|
|
|
import org.springframework.aot.hint.RuntimeHints; |
|
|
|
import org.springframework.aot.hint.RuntimeHints; |
|
|
|
import org.springframework.aot.hint.RuntimeHintsRegistrar; |
|
|
|
import org.springframework.aot.hint.RuntimeHintsRegistrar; |
|
|
|
|
|
|
|
import org.springframework.aot.hint.TypeReference; |
|
|
|
import org.springframework.security.web.access.expression.WebSecurityExpressionRoot; |
|
|
|
import org.springframework.security.web.access.expression.WebSecurityExpressionRoot; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -34,6 +35,11 @@ class WebMvcSecurityRuntimeHints implements RuntimeHintsRegistrar { |
|
|
|
hints.reflection() |
|
|
|
hints.reflection() |
|
|
|
.registerType(WebSecurityExpressionRoot.class, (builder) -> builder |
|
|
|
.registerType(WebSecurityExpressionRoot.class, (builder) -> builder |
|
|
|
.withMembers(MemberCategory.INVOKE_DECLARED_METHODS, MemberCategory.DECLARED_FIELDS)); |
|
|
|
.withMembers(MemberCategory.INVOKE_DECLARED_METHODS, MemberCategory.DECLARED_FIELDS)); |
|
|
|
|
|
|
|
hints.reflection() |
|
|
|
|
|
|
|
.registerType( |
|
|
|
|
|
|
|
TypeReference |
|
|
|
|
|
|
|
.of("org.springframework.security.web.csrf.CsrfTokenRequestAttributeHandler$SupplierCsrfToken"), |
|
|
|
|
|
|
|
MemberCategory.INVOKE_DECLARED_METHODS); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|