Uses of Class
org.forgerock.http.filter.CsrfFilter.Builder
Packages that use CsrfFilter.Builder
-
Uses of CsrfFilter.Builder in org.forgerock.http.filter
Methods in org.forgerock.http.filter that return CsrfFilter.BuilderModifier and TypeMethodDescriptionCsrfFilter.Builder.excludeMethods(String... httpMethods) Excludes a HTTP method from the CSRF filter.CsrfFilter.Builder.excludePaths(String... paths) Excludes a path from the CSRF filter.CsrfFilter.Builder.excludePaths(Collection<String> paths) Excludes the paths from the CSRF filter.CsrfFilter.Builder.excludePathsStarting(String... pathPrefixes) Excludes paths starting with the given prefixes from the CSRF filter.CsrfFilter.Builder.excludePathsStarting(Collection<String> pathPrefixes) Excludes paths starting with the given prefixes from the CSRF filter.CsrfFilter.Builder.excludeRequests(Predicate<Request> predicate) Excludes requests that match the given predicate from the CSRF filter.CsrfFilter.Builder.excludeRequests(Predicate<Request> predicate, String description) Excludes requests that match the given predicate from the CSRF filter.CsrfFilter.Builder.excludeSafeMethods()Excludes HTTP safe methods that are usually not susceptible to CSRF attacks:GET,HEAD, andOPTIONS.CsrfFilter.Builder.failureHandler(Handler failureHandler) Add a handler which will be responsible of creating a response in case of missing/wrong CSRF token.static CsrfFilter.BuilderFilters.newCsrfFilter(String cookieName) Creates a filter that protects against cross-site request forgery (CSRF) attacks when using cookies for authentication.CsrfFilter.Builder.tokenHeader(String csrfTokenHeader) Sets the header to use to receive the anti-CSRF token.