Class CsrfPreventionFilter.CsrfResponseWrapper

    • Constructor Detail

      • CsrfResponseWrapper

        public CsrfResponseWrapper​(HttpServletResponse response,
                                   java.lang.String nonceRequestParameterName,
                                   java.lang.String nonce,
                                   java.util.Collection<java.util.function.Predicate<java.lang.String>> noNoncePatterns)
    • Method Detail

      • removeQueryParameters

        public static java.lang.String removeQueryParameters​(java.lang.String url,
                                                             java.lang.String parameterName)
        Removes zero or more query parameters from a URL. All instances of the query parameter and any associated values will be removed.
        Parameters:
        url - The URL whose query parameters should be removed.
        parameterName - The name of the parameter to remove.
        Returns:
        The URL without any instances of the query parameter parameterName present.