Class ClientNameRestorer

  • All Implemented Interfaces:
    org.pac4j.core.authorization.generator.AuthorizationGenerator

    public class ClientNameRestorer
    extends Object
    implements org.pac4j.core.authorization.generator.AuthorizationGenerator
    Authorization generator that restores the profiles client name if it contains any suffixes needed for direct clients.
    Since:
    8.2.0
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • generate

        public Optional<org.pac4j.core.profile.UserProfile> generate​(org.pac4j.core.context.WebContext context,
                                                                     org.pac4j.core.context.session.SessionStore sessionStore,
                                                                     org.pac4j.core.profile.UserProfile profile)
        Specified by:
        generate in interface org.pac4j.core.authorization.generator.AuthorizationGenerator