Class AddDelegationRestrictionToAssertions

    • Field Detail

      • log

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

        @Nullable
        private List<Assertion> assertions
        List of assertions to modify.
      • attestedAssertion

        @Nullable
        private Assertion attestedAssertion
        The delegated Assertion that was attested.
      • attestedSubjectConfirmationMethod

        @Nullable
        private String attestedSubjectConfirmationMethod
        The subject confirmation method successfully used to confirm the assertion by the presenter.
      • presenterEntityID

        @Nullable
        private String presenterEntityID
        The presenting entity which successfully attested the Assertion token.
      • delegationInstant

        @Nullable
        private Instant delegationInstant
        The instant of delegation.
    • Constructor Detail

      • AddDelegationRestrictionToAssertions

        public AddDelegationRestrictionToAssertions()
        Constructor.
    • Method Detail

      • setResponseLookupStrategy

        public void setResponseLookupStrategy​(@Nonnull
                                              Function<ProfileRequestContext,​Response> strategy)
        Set the strategy used to locate the Response to operate on.
        Parameters:
        strategy - lookup strategy
      • addDelegationRestriction

        protected void addDelegationRestriction​(@Nonnull
                                                ProfileRequestContext profileRequestContext,
                                                @Nonnull
                                                Conditions conditions)
        Add a delegation restriction condition to the specified conditions.
        Parameters:
        profileRequestContext - the current profile request context
        conditions - the conditions instance to modify
      • buildDelegationRestriction

        @Nullable
        protected DelegationRestrictionType buildDelegationRestriction​(@Nonnull
                                                                       ProfileRequestContext profileRequestContext)
        Using the existing attested Assertion from the presenter as a context, build the appropriate DelegationRestrictionType Condition.
        Parameters:
        profileRequestContext - the current profile request context
        Returns:
        new DelegationRestrictionType Condition, or null if the condition could not be build
      • getDelegationRestrictionCondition

        @Nullable
        protected DelegationRestrictionType getDelegationRestrictionCondition​(@Nullable
                                                                              Conditions conditions)
        Get the DelegationRestrictionType Condition from the supplied Conditions, if present.
        Parameters:
        conditions - the Assertion Conditions to process
        Returns:
        the DelegationRestrictionType Condition object, or null if not present
      • buildDelegate

        @Nonnull
        protected Delegate buildDelegate​(@Nonnull
                                         ProfileRequestContext profileRequestContext)
        Build the Delegate child for the DelegationRestrictionType Condition, based on the current request context.
        Parameters:
        profileRequestContext - the
        Returns:
        the new Delegate instance