Class JsonResourceAuthorizationGenerator

  • All Implemented Interfaces:
    org.pac4j.core.authorization.generator.AuthorizationGenerator
    Direct Known Subclasses:
    YamlResourceAuthorizationGenerator

    public class JsonResourceAuthorizationGenerator
    extends java.lang.Object
    implements org.pac4j.core.authorization.generator.AuthorizationGenerator
    Since:
    5.2.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<org.pac4j.core.profile.UserProfile> generate​(org.pac4j.core.context.WebContext context, org.pac4j.core.profile.UserProfile profile)  
      protected com.fasterxml.jackson.core.JsonFactory getJsonFactory()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JsonResourceAuthorizationGenerator

        public JsonResourceAuthorizationGenerator​(org.springframework.core.io.Resource resource)
    • Method Detail

      • generate

        public java.util.Optional<org.pac4j.core.profile.UserProfile> generate​(org.pac4j.core.context.WebContext context,
                                                                               org.pac4j.core.profile.UserProfile profile)
        Specified by:
        generate in interface org.pac4j.core.authorization.generator.AuthorizationGenerator
      • getJsonFactory

        protected com.fasterxml.jackson.core.JsonFactory getJsonFactory()