Class MappedMetadataIdentityBuilder
- java.lang.Object
-
- com.adaptris.core.security.access.IdentityBuilderImpl
-
- com.adaptris.core.security.access.MetadataIdentityBuilderImpl
-
- com.adaptris.core.security.access.MappedMetadataIdentityBuilder
-
- All Implemented Interfaces:
ComponentLifecycle
,IdentityBuilder
public class MappedMetadataIdentityBuilder extends MetadataIdentityBuilderImpl
Build the identity from metadata which is mapped to specific values.In the event that your metadata keys match the values within the identity map then you are better off using
MetadataIdentityBuilder
instead.In the adapter configuration file this class is aliased as mapped-metadata-identity-builder which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.adaptris.core.security.access.MetadataIdentityBuilderImpl
MetadataIdentityBuilderImpl.MetadataSource
-
-
Field Summary
-
Fields inherited from class com.adaptris.core.security.access.IdentityBuilderImpl
log
-
-
Constructor Summary
Constructors Constructor Description MappedMetadataIdentityBuilder()
MappedMetadataIdentityBuilder(MetadataIdentityBuilderImpl.MetadataSource type, KeyValuePairList map)
MappedMetadataIdentityBuilder(KeyValuePairList map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>
build(AdaptrisMessage msg)
KeyValuePairList
getMetadataMap()
void
setMetadataMap(KeyValuePairList m)
Sets aKeyValuePairList
in which the key is the metadata key, and the value is the key for the identity map.-
Methods inherited from class com.adaptris.core.security.access.MetadataIdentityBuilderImpl
getMetadataSource, getValue, metadataSource, setMetadataSource
-
Methods inherited from class com.adaptris.core.security.access.IdentityBuilderImpl
close, init, start, stop
-
-
-
-
Constructor Detail
-
MappedMetadataIdentityBuilder
public MappedMetadataIdentityBuilder()
-
MappedMetadataIdentityBuilder
public MappedMetadataIdentityBuilder(KeyValuePairList map)
-
MappedMetadataIdentityBuilder
public MappedMetadataIdentityBuilder(MetadataIdentityBuilderImpl.MetadataSource type, KeyValuePairList map)
-
-
Method Detail
-
build
public java.util.Map<java.lang.String,java.lang.Object> build(AdaptrisMessage msg)
-
getMetadataMap
public KeyValuePairList getMetadataMap()
- Returns:
- the metadataMap
-
setMetadataMap
public void setMetadataMap(KeyValuePairList m)
Sets aKeyValuePairList
in which the key is the metadata key, and the value is the key for the identity map.- Parameters:
m
- aKeyValuePairList
-
-