Class AbstractSAML2NameIDGenerator

    • Field Detail

      • log

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

        @Nonnull
        private Function<org.opensaml.profile.context.ProfileRequestContext,​AuthnRequest> requestLookupStrategy
        Strategy used to locate an AuthnRequest to check.
    • Constructor Detail

      • AbstractSAML2NameIDGenerator

        protected AbstractSAML2NameIDGenerator()
        Constructor.
    • Method Detail

      • setRequestLookupStrategy

        public void setRequestLookupStrategy​(@Nonnull
                                             Function<org.opensaml.profile.context.ProfileRequestContext,​AuthnRequest> strategy)
        Set the strategy used to locate the AuthnRequest to check for a NameIDPolicy.
        Parameters:
        strategy - lookup strategy
      • doGenerate

        @Nullable
        protected NameID doGenerate​(@Nonnull
                                    org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
                             throws SAMLException
        Override this method to fully control the generation process.
        Specified by:
        doGenerate in class AbstractNameIdentifierGenerator<NameID>
        Parameters:
        profileRequestContext - current profile request context
        Returns:
        the generated object
        Throws:
        SAMLException - if an error occurs
      • getEffectiveSPNameQualifier

        @Nullable
        protected String getEffectiveSPNameQualifier​(@Nonnull
                                                     org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
        Get the effective SPNameQualifier to apply based on the properties set and the current request.
        Overrides:
        getEffectiveSPNameQualifier in class AbstractNameIdentifierGenerator<NameID>
        Parameters:
        profileRequestContext - current profile context
        Returns:
        the effective NameQualifier to set, or null