Class CopyNameIDFromRequest

    • Field Detail

      • log

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

        private boolean overwriteExisting
        Flag controlling whether to overwrite an existing NameID.
      • nameId

        @Nullable
        private NameID nameId
        NameID to copy.
      • response

        @Nullable
        private Response response
        Response to modify.
    • Constructor Detail

      • CopyNameIDFromRequest

        public CopyNameIDFromRequest()
        Constructor.
    • Method Detail

      • setOverwriteExisting

        public void setOverwriteExisting​(boolean flag)
        Set whether to overwrite any existing NameID objects found.
        Parameters:
        flag - true iff the action should overwrite any existing objects
      • setResponseLookupStrategy

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

        @Nonnull
        private Subject getAssertionSubject​(@Nonnull
                                            Assertion assertion)
        Get the subject to which the name identifier will be added.
        Parameters:
        assertion - the assertion being modified
        Returns:
        the assertion to which the name identifier will be added
      • cloneNameID

        @Nonnull
        private NameID cloneNameID()
        Create an efficient field-wise copy of a NameID.
        Returns:
        the copy