Class SetRequestedClaimsToResponseContext

    • Field Detail

      • log

        @Nonnull
        private final org.slf4j.Logger log
        Class logger.
      • requestedClaimsLookupStrategy

        @Nonnull
        private Function<ProfileRequestContext,​com.nimbusds.openid.connect.sdk.OIDCClaimsRequest> requestedClaimsLookupStrategy
        Strategy used to obtain the requested claims of request.
      • transcoderRegistry

        @NonnullAfterInit
        private ReloadableService<net.shibboleth.idp.attribute.transcoding.AttributeTranscoderRegistry> transcoderRegistry
        Transcoder registry service object.
    • Constructor Detail

      • SetRequestedClaimsToResponseContext

        public SetRequestedClaimsToResponseContext()
        Constructor.
    • Method Detail

      • setTranscoderRegistry

        public void setTranscoderRegistry​(@Nonnull
                                          ReloadableService<net.shibboleth.idp.attribute.transcoding.AttributeTranscoderRegistry> registry)
        Sets the registry of transcoding rules to apply to encode attributes.
        Parameters:
        registry - registry service interface
      • setRequestedClaimsLookupStrategy

        public void setRequestedClaimsLookupStrategy​(@Nonnull
                                                     Function<ProfileRequestContext,​com.nimbusds.openid.connect.sdk.OIDCClaimsRequest> strategy)
        Set the strategy used to locate the requested claims of request.
        Parameters:
        strategy - lookup strategy
      • decodeAttribute

        private void decodeAttribute​(@Nonnull
                                     ProfileRequestContext profileRequestContext,
                                     @Nonnull @NonnullElements
                                     Collection<net.shibboleth.idp.attribute.transcoding.TranscodingRule> rules,
                                     @Nonnull
                                     net.minidev.json.JSONObject input,
                                     @Nonnull @NonnullElements @Live
                                     Multimap<String,​net.shibboleth.idp.attribute.IdPAttribute> results)
        Access the registry of transcoding rules to decode the input object.
        Parameters:
        profileRequestContext - profile request context
        rules - transcoding rules
        input - input object
        results - collection to add results to