Class SessionProfileIdentificationMethod

java.lang.Object
dev.getelements.elements.rt.security.SessionProfileIdentificationMethod
All Implemented Interfaces:
ProfileIdentificationMethod

public class SessionProfileIdentificationMethod extends Object implements ProfileIdentificationMethod
  • Constructor Details

    • SessionProfileIdentificationMethod

      public SessionProfileIdentificationMethod()
  • 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
    • getOptionalSessionProvider

      public jakarta.inject.Provider<Optional<Session>> getOptionalSessionProvider()
    • setOptionalSessionProvider

      @Inject public void setOptionalSessionProvider(jakarta.inject.Provider<Optional<Session>> optionalSessionProvider)