P - the PluginConfiguration class for this implementation of
HeaderIdentityMappingPluginpublic abstract class HeaderIdentityMappingPlugin<P extends PluginConfiguration> extends IdentityMappingPluginBase<P>
createMappingPairConfiguration(PluginConfiguration) will be called, passing in
the plugin configuration. Implementors of this class should return a set of
AttributeHeaderPairs.
If an AttributeHeaderPair is set as the subject, on
incoming requests Identity.setMappedSubject(java.lang.String) will be
called, setting the mapped subject on the Identity.
getPairValue(Identity, AttributeHeaderPair, Exchange) will be called for each
configured AttributeHeaderPair
and the user attribute value will be looked up and set as the header value. For multi-value attributes, a single
comma separated header value will be set in the request. This method can be overridden if custom behavior is desired.
AttributeHeaderPair| Constructor and Description |
|---|
HeaderIdentityMappingPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(P configuration)
Implementation of
ConfigurablePlugin.configure(com.pingidentity.pa.sdk.policy.PluginConfiguration)
that saves the provided configuration data in a field. |
void |
mapAnonymousIdentity(Request request,
Exchange exchange)
Maps the anonymous identity.
|
void |
mapIdentity(Identity identity,
Request request,
Exchange exchange)
Maps the identity by inspecting the identity associated with the request and making modifications to the request
and/or exchange.
|
getConfigurationequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfigurationFieldspublic void configure(P configuration) throws javax.validation.ValidationException
IdentityMappingPluginBaseConfigurablePlugin.configure(com.pingidentity.pa.sdk.policy.PluginConfiguration)
that saves the provided configuration data in a field.configure in interface ConfigurablePlugin<P extends PluginConfiguration>configure in class IdentityMappingPluginBase<P extends PluginConfiguration>configuration - An implementation of PluginConfiguration, configured with information from the UI.javax.validation.ValidationException - If the provided Validation is invalid.public void mapIdentity(Identity identity, Request request, Exchange exchange)
IdentityMappingPlugin
If the subject is configured in the IdentityMapping,
Identity.setMappedSubject(java.lang.String) should be called,
setting the subject value.
NOTE: Modifications to the exchange via Exchange.setRequest(Request), and Exchange.setResponse(Response) will be ignored
identity - the identity of the request (always set)request - the requestexchange - the exchangepublic void mapAnonymousIdentity(Request request, Exchange exchange)
IdentityMappingPluginIf the identity is mapped to request headers, this method should clobbers headers that would be set when an identity was present in the request.
NOTE: Modifications to the exchange via Exchange.setRequest(Request), and Exchange.setResponse(Response) will be ignored
request - the requestexchange - the exchangeCopyright 2023 Ping Identity Corp. All rights reserved.