Class NoAuthValueFactoryProvider

  • All Implemented Interfaces:
    org.glassfish.jersey.server.spi.internal.ValueFactoryProvider

    public class NoAuthValueFactoryProvider
    extends org.glassfish.jersey.server.internal.inject.AbstractValueFactoryProvider
    A cut down copy of the JWT based Auth value provider, it simply logs in as 'admin' for every resource call. Used when auth it to be 'turned off', mainly for testing without using an available auth service.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  NoAuthValueFactoryProvider.Binder
      Injection binder for NoAuthValueFactoryProvider and NoAuthValueFactoryProvider.NoAuthInjectionResolver.
      • Nested classes/interfaces inherited from interface org.glassfish.jersey.server.spi.internal.ValueFactoryProvider

        org.glassfish.jersey.server.spi.internal.ValueFactoryProvider.Priority, org.glassfish.jersey.server.spi.internal.ValueFactoryProvider.PriorityType
    • Constructor Summary

      Constructors 
      Constructor Description
      NoAuthValueFactoryProvider​(org.glassfish.jersey.server.internal.inject.MultivaluedParameterExtractorProvider mpep, org.glassfish.hk2.api.ServiceLocator injector)
      Principal value factory provider injection constructor.
    • Method Summary

      Modifier and Type Method Description
      protected org.glassfish.hk2.api.Factory<ServiceUser> createValueFactory​(org.glassfish.jersey.server.model.Parameter parameter)  
      • Methods inherited from class org.glassfish.jersey.server.internal.inject.AbstractValueFactoryProvider

        get, getLocator, getPriority, getValueFactory, getWithoutDefaultValue
      • Methods inherited from class java.lang.Object

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

      • ADMIN_USER

        public static final ServiceUser ADMIN_USER
    • Constructor Detail

      • NoAuthValueFactoryProvider

        @Inject
        public NoAuthValueFactoryProvider​(org.glassfish.jersey.server.internal.inject.MultivaluedParameterExtractorProvider mpep,
                                          org.glassfish.hk2.api.ServiceLocator injector)
        Principal value factory provider injection constructor.
        Parameters:
        mpep - multivalued parameter extractor provider
        injector - injector instance
    • Method Detail

      • createValueFactory

        protected org.glassfish.hk2.api.Factory<ServiceUser> createValueFactory​(org.glassfish.jersey.server.model.Parameter parameter)
        Specified by:
        createValueFactory in class org.glassfish.jersey.server.internal.inject.AbstractValueFactoryProvider