public class PasswordEncodeMetadataFilter extends PasswordMetadataFilter
Note that keys that do not match will still be returned; just that keys that do match PasswordMetadataFilter.getPasswordPatterns()
will have
Password.encode(String,String)
applied to the values.Please note that a new MetadataElement
is created as a
result of the encode/deocde process, so any changes may not be reflected in the original message.
In the adapter configuration file this class is aliased as password-encoder-metadata-filter which is the preferred alternative to the fully qualified classname when building your configuration.
log
Constructor and Description |
---|
PasswordEncodeMetadataFilter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getStyle() |
protected MetadataElement |
handlePassword(MetadataElement element) |
void |
setStyle(java.lang.String style) |
PasswordEncodeMetadataFilter |
withStyle(java.lang.String s) |
filter, getPasswordPatterns, setPasswordPatterns, withPatterns, wrapException
filter, filter
protected MetadataElement handlePassword(MetadataElement element) throws PasswordException
handlePassword
in class PasswordMetadataFilter
PasswordException
public java.lang.String getStyle()
public void setStyle(java.lang.String style)
public PasswordEncodeMetadataFilter withStyle(java.lang.String s)