Class ResourceProfileIdentificationMethod
java.lang.Object
dev.getelements.elements.appnode.security.ResourceProfileIdentificationMethod
- All Implemented Interfaces:
ProfileIdentificationMethod
public class ResourceProfileIdentificationMethod
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.inject.Provider
<Resource> void
setResourceProvider
(jakarta.inject.Provider<Resource> resourceProvider)
-
Constructor Details
-
ResourceProfileIdentificationMethod
public ResourceProfileIdentificationMethod()
-
-
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
-
getResourceProvider
-
setResourceProvider
-