Class ResourceProfileIdentificationMethod

java.lang.Object
dev.getelements.elements.appnode.security.ResourceProfileIdentificationMethod
All Implemented Interfaces:
ProfileIdentificationMethod

public class ResourceProfileIdentificationMethod extends Object implements ProfileIdentificationMethod
  • Constructor Details

    • ResourceProfileIdentificationMethod

      public ResourceProfileIdentificationMethod()
  • Method Details

    • attempt

      public Optional<Profile> attempt()
      Description copied from interface: ProfileIdentificationMethod
      Attempts to identify the profile. If this process fails, then this must return an object equivalent to Optional.empty(). Additional methods may be attempted until all possible methods are exhausted or a suitable Profile is found.
      Specified by:
      attempt in interface ProfileIdentificationMethod
      Returns:
      the Profile, never null
    • getResourceProvider

      public jakarta.inject.Provider<Resource> getResourceProvider()
    • setResourceProvider

      @Inject public void setResourceProvider(jakarta.inject.Provider<Resource> resourceProvider)