public class STSPrincipalMappingProvider extends AbstractPrincipalMappingProvider
This mapping provider looks at the NameID in the Assertion and returns a corresponding JBoss Principal for insertion into the Subject.
<application-policy name="saml-issue-token">
<authentication>
<login-module code="org.picketlink.identity.federation.core.wstrust.auth.STSIssuingLoginModule" flag="required">
<module-option name="configFile">/sts-client.properties</module-option>
<module-option name="password-stacking">useFirstPass</module-option>
</login-module>
</authentication>
<mapping>
<mapping-module code="org.picketlink.identity.federation.bindings.jboss.auth.mapping.STSPrincipalMappingProvider" type="principal"/>
<mapping-module code="org.picketlink.identity.federation.bindings.jboss.auth.mapping.STSGroupMappingProvider" type="role"/>
</mapping>
</application-policy>
Constructor and Description |
---|
STSPrincipalMappingProvider() |
Modifier and Type | Method and Description |
---|---|
void |
init(Map<String,Object> contextMap)
Initialize the provider with the configured module options
|
void |
performMapping(Map<String,Object> contextMap,
Principal principal)
Map the passed object
|
void |
setMappingResult(MappingResult<Principal> mappingResult)
Injected by the MappingContext
|
supports
public void init(Map<String,Object> contextMap)
MappingProvider
public void performMapping(Map<String,Object> contextMap, Principal principal)
MappingProvider
contextMap
- A read-only contextual map that can provide information to the providerprincipal
- an Object on which the mapping will be appliedpublic void setMappingResult(MappingResult<Principal> mappingResult)
MappingProvider
Copyright © 2021 JBoss by Red Hat. All rights reserved.