Class AlgorithmInfoMetadataValueResolver

    • Field Detail

      • log

        private final org.slf4j.Logger log
        Class logger.
      • relyingPartyContextLookupStrategy

        @Nonnull
        private Function<ProfileRequestContext,​net.shibboleth.idp.profile.context.RelyingPartyContext> relyingPartyContextLookupStrategy
        Strategy used to locate the RelyingPartyContext associated with a given ProfileRequestContext.
      • resolveEncryptionAlgs

        private boolean resolveEncryptionAlgs
        Whether to resolve data and key transport encryption algorithms. Defaults to false, when signature algorithms are resolved.
      • resolveKeyTransportEncAlgs

        private boolean resolveKeyTransportEncAlgs
        Whether to resolve key transport encryption algorithms. Defaults to false, when data encryption algorithms are resolved. This flag is only used when resolveEncryptionAlgs is enabled.
    • Constructor Detail

      • AlgorithmInfoMetadataValueResolver

        public AlgorithmInfoMetadataValueResolver()
        Constructor.
    • Method Detail

      • setRelyingPartyContextLookupStrategy

        public void setRelyingPartyContextLookupStrategy​(@Nonnull
                                                         Function<ProfileRequestContext,​net.shibboleth.idp.profile.context.RelyingPartyContext> strategy)
        Set the strategy used to locate the RelyingPartyContext associated with a given ProfileRequestContext.
        Parameters:
        strategy - strategy used to locate the RelyingPartyContext associated with a given ProfileRequestContext
      • setResolveEncryptionAlgs

        public void setResolveEncryptionAlgs​(boolean flag)
        Set whether to resolve data encryption algorithms. When set to false, signature algorithms are resolved.
        Parameters:
        flag - What to set.
      • setResolveKeyTransportEncAlgs

        public void setResolveKeyTransportEncAlgs​(boolean flag)
        Set whether to resolve key transport algorithms. Defaults to false, when data encryption algorithms are resolved. In any case, resolveEncryptionAlgs must be enabled.
        Parameters:
        flag - What to set.
      • populateAlgorithmsAgainstPolicy

        protected void populateAlgorithmsAgainstPolicy​(List<String> algorithms,
                                                       List<String> candidates,
                                                       AlgorithmPolicyConfiguration policy)
        Verifies the candidates against given policy (inclusion/exclusion) and adds the passed ones to the given list.
        Parameters:
        algorithms - the list where to store the passed candidates
        candidates - the candidates to be verified
        policy - the policy to be verified against