Skip to content

Instantly share code, notes, and snippets.

@with-heart
Created July 24, 2017 00:15
Show Gist options
  • Save with-heart/6ca55111328b498cca4dba87e6f3a322 to your computer and use it in GitHub Desktop.
Save with-heart/6ca55111328b498cca4dba87e6f3a322 to your computer and use it in GitHub Desktop.
@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