Skip to content

Commit de104e2

Browse files
franticticktickrwinch
authored andcommitted
Update javaDoc for DefaultOneTimeTokenSubmitPageGeneratingFilter
1 parent a3fd551 commit de104e2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

web/src/main/java/org/springframework/security/web/authentication/ui/DefaultOneTimeTokenSubmitPageGeneratingFilter.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,21 @@ private String renderHiddenInput(String name, String value) {
8989
.render();
9090
}
9191

92+
/**
93+
* Sets a Function used to resolve a Map of the hidden inputs where the key is the
94+
* name of the input and the value is the value of the input.
95+
* @param resolveHiddenInputs the function to resolve the inputs
96+
*/
9297
public void setResolveHiddenInputs(Function<HttpServletRequest, Map<String, String>> resolveHiddenInputs) {
9398
Assert.notNull(resolveHiddenInputs, "resolveHiddenInputs cannot be null");
9499
this.resolveHiddenInputs = resolveHiddenInputs;
95100
}
96101

102+
/**
103+
* Use this {@link RequestMatcher} to choose whether this filter will handle the
104+
* request. By default, it handles {@code /login/ott}.
105+
* @param requestMatcher the {@link RequestMatcher} to use
106+
*/
97107
public void setRequestMatcher(RequestMatcher requestMatcher) {
98108
Assert.notNull(requestMatcher, "requestMatcher cannot be null");
99109
this.requestMatcher = requestMatcher;

0 commit comments

Comments
 (0)