Class CopyNameIDFromRequest

    • Field Detail

      • log

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

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

        private NameID nameId
        NameID to copy.
      • response

        private Response response
        Response to modify.
    • Constructor Detail

      • CopyNameIDFromRequest

        public CopyNameIDFromRequest()
    • Method Detail

      • setOverwriteExisting

        public void setOverwriteExisting​(boolean flag)
        Set whether to overwrite any existing NameID objects found.
        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.
        strategy - lookup strategy
      • getAssertionSubject

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

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