Created
July 24, 2017 00:15
-
-
Save with-heart/6ca55111328b498cca4dba87e6f3a322 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component | |
class QueryParamsDecryptionFilter : ZuulFilter() { | |
private val encryptedStringRegex = | |
Regex("(?=.*[A-Z]+)(?=.*\\d+)([A-Z0-9]){12,}") | |
override fun run(): Any? { | |
return null | |
} | |
override fun shouldFilter(): Boolean { | |
return false | |
} | |
override fun filterOrder() = 1 | |
override fun filterType() = "pre" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment