Package liquibase.database.jvm
Class ConnectionPatterns
java.lang.Object
liquibase.database.jvm.ConnectionPatterns
- Direct Known Subclasses:
JdbcConnectionPatterns
A base class that holds connection string patterns with connection credentials that should be hidden in logs.
Derived classes add their own connection string patterns.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addJdbcBlankPatterns
(Map.Entry<Pattern, Pattern> jdbcBlankPatterns) Holds credential patterns that should be replaced by empty string.void
addJdbcBlankToObfuscatePatterns
(Map.Entry<Pattern, Pattern> patternJdbcBlankToObfuscate) Holds credential patterns that are located before the domain or subdomain part.void
addJdbcObfuscatePatterns
(Map.Entry<Pattern, Pattern> jdbcObfuscatePatterns) Holds credential patterns that are located in the URL parameters.
-
Constructor Details
-
ConnectionPatterns
public ConnectionPatterns()
-
-
Method Details
-
getJdbcBlankPatterns
-
getJdbcBlankToObfuscatePatterns
-
getJdbcObfuscatePatterns
-
addJdbcBlankPatterns
Holds credential patterns that should be replaced by empty string.jdbc:mysql://localhost:3306/lbcat?user=username&password=password
jdbc:mariadb://username:password@localhost:3306/lbcat
-
addJdbcBlankToObfuscatePatterns
Holds credential patterns that are located before the domain or subdomain part. They should be replaced by asterisks.jdbc:mariadb://username:password@localhost:3306/lbcat
-
addJdbcObfuscatePatterns
Holds credential patterns that are located in the URL parameters. They should be replaced by asterisks.jdbc:postgresql://localhost:6432/lbcat?user=username&password=password
-