Class ProxyAwareDefaultOIDCAuthenticationContextClassResponseLookupFunction
- java.lang.Object
-
- net.shibboleth.oidc.profile.config.navigate.ProxyAwareDefaultOIDCAuthenticationContextClassResponseLookupFunction
-
- All Implemented Interfaces:
Function<Collection<String>,Collection<Principal>>
@ThreadSafe public class ProxyAwareDefaultOIDCAuthenticationContextClassResponseLookupFunction extends Object implements Function<Collection<String>,Collection<Principal>>
Implements a set of logic for determining the principals to use from OIDC 'amr' or 'acr' claims.This operates for the OIDC to SAML proxy use case, in effect the reverse of the
ProxyAwareDefaultOIDCAuthenticationContextClassRequestLookupFunctionfunction. All input values are either OIDC ACRs or AMRs, and all output values JavaPrincipals. The values are mapped by the given principal mappings. If a mapping does not exist, the AMR or ACR is ignored.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProxyAwareDefaultOIDCAuthenticationContextClassResponseLookupFunction.LookupFunctionWrapperA simple lookup function that returns a singleton function.
-
Field Summary
Fields Modifier and Type Field Description private Map<String,Collection<Principal>>principalMappingsMappings to transform proxied Principals.
-
Constructor Summary
Constructors Constructor Description ProxyAwareDefaultOIDCAuthenticationContextClassResponseLookupFunction(Map<String,Collection<Principal>> mappings)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Principal>apply(Collection<String> amrOrAcrs)
-
-
-
Field Detail
-
principalMappings
@Nonnull @NonnullElements private final Map<String,Collection<Principal>> principalMappings
Mappings to transform proxied Principals.
-
-
Constructor Detail
-
ProxyAwareDefaultOIDCAuthenticationContextClassResponseLookupFunction
public ProxyAwareDefaultOIDCAuthenticationContextClassResponseLookupFunction(@Nullable @NonnullElements @ParameterName(name="mappings") Map<String,Collection<Principal>> mappings)
Constructor.- Parameters:
mappings- the AMR/ACR value to Principal mappings
-
-
Method Detail
-
apply
public Collection<Principal> apply(Collection<String> amrOrAcrs)
- Specified by:
applyin interfaceFunction<Collection<String>,Collection<Principal>>
-
-