Package org.apache.cxf.sts.claims.mapper
Class JexlClaimsMapper
- java.lang.Object
-
- org.apache.cxf.sts.claims.mapper.JexlClaimsMapper
-
- All Implemented Interfaces:
ClaimsMapper
public class JexlClaimsMapper extends Object implements ClaimsMapper
-
-
Constructor Summary
Constructors Constructor Description JexlClaimsMapper()JexlClaimsMapper(String script)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.commons.jexl3.JexlEnginegetJexlEngine()org.apache.commons.jexl3.JexlScriptgetScript()ProcessedClaimCollectionmapClaims(String sourceRealm, ProcessedClaimCollection sourceClaims, String targetRealm, ClaimsParameters parameters)Map a collection of claims in the source realm to the target realmvoidsetJexlEngine(org.apache.commons.jexl3.JexlEngine jexl)voidsetScript(String scriptLocation)voidsetScript(org.apache.commons.jexl3.JexlScript script)
-
-
-
Constructor Detail
-
JexlClaimsMapper
public JexlClaimsMapper()
-
JexlClaimsMapper
public JexlClaimsMapper(String script) throws IOException
- Throws:
IOException
-
-
Method Detail
-
mapClaims
public ProcessedClaimCollection mapClaims(String sourceRealm, ProcessedClaimCollection sourceClaims, String targetRealm, ClaimsParameters parameters)
Description copied from interface:ClaimsMapperMap a collection of claims in the source realm to the target realm- Specified by:
mapClaimsin interfaceClaimsMapper- Parameters:
sourceRealm- the source realm of the PrincipalsourceClaims- the claims collection in the source realmtargetRealm- the target realm of the Principal- Returns:
- claims collection of the target realm
-
getScript
public org.apache.commons.jexl3.JexlScript getScript()
-
setScript
public final void setScript(org.apache.commons.jexl3.JexlScript script)
-
setScript
public final void setScript(String scriptLocation) throws IOException
- Throws:
IOException
-
getJexlEngine
public org.apache.commons.jexl3.JexlEngine getJexlEngine()
-
setJexlEngine
public void setJexlEngine(org.apache.commons.jexl3.JexlEngine jexl)
-
-