Class OA2FunctorFactory
- java.lang.Object
-
- edu.uiuc.ncsa.security.util.functor.JFunctorFactory
-
- org.oa4mp.server.loader.oauth2.functor.claims.OA2FunctorFactory
-
- All Implemented Interfaces:
Serializable
public class OA2FunctorFactory extends edu.uiuc.ncsa.security.util.functor.JFunctorFactory
A Claims Aware functor factory. This will replace templates with their values based on the claims supplied in a hashmap.Created by Jeff Gaynor
on 3/1/18 at 10:09 AM- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OA2FunctorFactory(Map<String,Object> claims, Collection<String> scopes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getReplacementTemplates()
Collection<String>
getScopes()
boolean
hasClaims()
edu.uiuc.ncsa.security.util.functor.JMetaMetaFunctor
lookUpFunctor(String name)
protected String
preprocess(String x)
-
Methods inherited from class edu.uiuc.ncsa.security.util.functor.JFunctorFactory
addArgs, create, create, create, createLogicBlock, createLogicBlocks, doLBArray, doLBObject, figureOutFunctor, fromJSON, getArray, getEnvironment, hasEnum, isFunctor, isVerboseOn, lookUpFunctor, setEnvironment, setVerboseOn, toString
-
-
-
-
Constructor Detail
-
OA2FunctorFactory
public OA2FunctorFactory(Map<String,Object> claims, Collection<String> scopes)
-
-
Method Detail
-
getReplacementTemplates
public Map<String,String> getReplacementTemplates()
- Overrides:
getReplacementTemplates
in classedu.uiuc.ncsa.security.util.functor.JFunctorFactory
-
hasClaims
public boolean hasClaims()
-
getScopes
public Collection<String> getScopes()
-
preprocess
protected String preprocess(String x)
- Overrides:
preprocess
in classedu.uiuc.ncsa.security.util.functor.JFunctorFactory
-
lookUpFunctor
public edu.uiuc.ncsa.security.util.functor.JMetaMetaFunctor lookUpFunctor(String name)
- Overrides:
lookUpFunctor
in classedu.uiuc.ncsa.security.util.functor.JFunctorFactory
-
-