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
ProxyAwareDefaultOIDCAuthenticationContextClassRequestLookupFunction function.
All input values are either OIDC ACRs or AMRs, and all output values Java Principals.
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 ClassesModifier and TypeClassDescriptionstatic classA simple lookup function that returns a singleton function. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String,Collection<Principal>> Mappings to transform proxied Principals. -
Constructor Summary
ConstructorsConstructorDescriptionProxyAwareDefaultOIDCAuthenticationContextClassResponseLookupFunction(Map<String, Collection<Principal>> mappings) Constructor. -
Method Summary
-
Field Details
-
principalMappings
Mappings to transform proxied Principals.
-
-
Constructor Details
-
ProxyAwareDefaultOIDCAuthenticationContextClassResponseLookupFunction
public ProxyAwareDefaultOIDCAuthenticationContextClassResponseLookupFunction(@Nullable @NonnullElements @ParameterName(name="mappings") Map<String, Collection<Principal>> mappings) Constructor.- Parameters:
mappings- the AMR/ACR value to Principal mappings
-
-
Method Details
-
apply
- Specified by:
applyin interfaceFunction<Collection<String>,Collection<Principal>>
-