Class AccessTokenClaimsSetLookupFunction
java.lang.Object
net.shibboleth.idp.plugin.oidc.op.profile.context.navigate.AccessTokenClaimsSetLookupFunction
- All Implemented Interfaces:
Function<ProfileRequestContext,,ClaimsSet> ContextDataLookupFunction<ProfileRequestContext,ClaimsSet>
public class AccessTokenClaimsSetLookupFunction
extends Object
implements ContextDataLookupFunction<ProfileRequestContext,ClaimsSet>
A function that returns the access token claims set from response context.
An option exists to create it if it does not already exist.
- Since:
- 3.1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanWhether to create the claims set if it is absent. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(ProfileRequestContext input) voidsetAutoCreate(boolean flag) Sets whether to create theClaimsSetif absent.
-
Field Details
-
autocreate
private boolean autocreateWhether to create the claims set if it is absent.
-
-
Constructor Details
-
AccessTokenClaimsSetLookupFunction
public AccessTokenClaimsSetLookupFunction()
-
-
Method Details
-
setAutoCreate
public void setAutoCreate(boolean flag) Sets whether to create theClaimsSetif absent.Defaults to false.
- Parameters:
flag- flag to set
-
apply
- Specified by:
applyin interfaceFunction<ProfileRequestContext,ClaimsSet>
-