Class HttpRequestSessionSecretProfileIdentificationMethod
java.lang.Object
dev.getelements.elements.servlet.security.HttpRequestSessionSecretProfileIdentificationMethod
- All Implemented Interfaces:
ProfileIdentificationMethod
public class HttpRequestSessionSecretProfileIdentificationMethod
extends Object
implements ProfileIdentificationMethod
-
Field Summary
Fields inherited from interface dev.getelements.elements.sdk.model.security.ProfileIdentificationMethod
UNIDENTIFIED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattempt()
Attempts to identify the profile.jakarta.servlet.http.HttpServletRequest
void
setHttpServletRequest
(jakarta.servlet.http.HttpServletRequest httpServletRequest) void
setProfileOverrideService
(ProfileOverrideService profileOverrideService)
-
Constructor Details
-
HttpRequestSessionSecretProfileIdentificationMethod
public HttpRequestSessionSecretProfileIdentificationMethod()
-
-
Method Details
-
attempt
Description copied from interface:ProfileIdentificationMethod
Attempts to identify the profile. If this process fails, then this must return an object equivalent toOptional.empty()
. Additional methods may be attempted until all possible methods are exhausted or a suitableProfile
is found.- Specified by:
attempt
in interfaceProfileIdentificationMethod
- Returns:
- the
Profile
, never null
-
getHttpServletRequest
public jakarta.servlet.http.HttpServletRequest getHttpServletRequest() -
setHttpServletRequest
@Inject public void setHttpServletRequest(jakarta.servlet.http.HttpServletRequest httpServletRequest) -
getProfileOverrideService
-
setProfileOverrideService
-