public class MetadataIdentityVerifier extends IdentityVerifierImpl
This IdentityVerifier
iterates over each entry in the identity map from IdentityBuilder.build(AdaptrisMessage)
and compares the value with the corresponding value from message metadata.
The key in getMetadataMap()
needs to match the key in the identity map. The value refers to the metadata key that will
be used to perform the match. In the event that the IdentityBuilder
builds a map containing non-strings; then results are
undefined (most likely validate(IdentityBuilder, AdaptrisMessage)
will return false).
In the adapter configuration file this class is aliased as simple-metadata-user-identity-verifier which is the preferred alternative to the fully qualified classname when building your configuration.
log
Constructor and Description |
---|
MetadataIdentityVerifier() |
MetadataIdentityVerifier(KeyValuePairSet set) |
Modifier and Type | Method and Description |
---|---|
KeyValuePairSet |
getMetadataMap() |
void |
setMetadataMap(KeyValuePairSet m)
Set the map to verify against.
|
boolean |
validate(IdentityBuilder builder,
AdaptrisMessage msg) |
close, init, start, stop
public MetadataIdentityVerifier()
public MetadataIdentityVerifier(KeyValuePairSet set)
public boolean validate(IdentityBuilder builder, AdaptrisMessage msg)
public KeyValuePairSet getMetadataMap()
public void setMetadataMap(KeyValuePairSet m)
The key in this instance should match the key returned by IdentityBuilder.build(AdaptrisMessage)
and the value the
corresponding metadata key that you want to match against.
m
- the map;