Interface ModuleAuthentication
- All Known Subinterfaces:
- ArchetypeSelectionModuleAuthentication,- AttributeVerificationModuleAuthentication,- CorrelationModuleAuthentication,- CredentialModuleAuthentication,- FocusIdentificationModuleAuthentication,- RemoteModuleAuthentication
public interface ModuleAuthentication
Wrapper for authentication module, provide all information about actual state and
 contains method that help during authentication and maybe specific for current authentication module.
 This class contains 
Authentication that can be token that define midPoint or token defined by spring security.
 This token is generated by providers and contains basic information about authenticated object
 for current authentication module, in most cases we need this token for logout.
 This class wraps necessity sequence module and add attributes such as state.- Author:
- skublik
- 
Method SummaryModifier and TypeMethodDescriptionbooleanDecide if the module should be evaluated during sequence evaluation.clone()org.springframework.security.core.AuthenticationgetOrder()getState()booleanVery bad name :) Specify is the module on its own is considered as sufficient for the authentication to succeed.voidrecordFailure(org.springframework.security.core.AuthenticationException exception) voidsetAuthentication(org.springframework.security.core.Authentication authentication) voidsetFailureData(AutheticationFailedData autheticationFailedData) voidsetFocusType(QName focusType) voidvoidsetSufficient(boolean sufficient) 
- 
Method Details- 
getModuleIdentifierString getModuleIdentifier()- Returns:
- identifier of the authentication module, get from configuration
 
- 
getModuleTypeNameString getModuleTypeName()- Returns:
- type of authentication module
 
- 
getStateAuthenticationModuleState getState()- Returns:
- state of module
 
- 
setState
- 
getAuthenticationorg.springframework.security.core.Authentication getAuthentication()- Returns:
- authentication token for module
 
- 
setAuthentication@Experimental void setAuthentication(org.springframework.security.core.Authentication authentication) 
- 
getPrefixString getPrefix()- Returns:
- prefix used in url
 
- 
getFocusTypeQName getFocusType()- Returns:
- type of authenticated object, get from configuration
 
- 
getNecessityAuthenticationSequenceModuleNecessityType getNecessity()- Returns:
- necessity for this module
 
- 
getOrderInteger getOrder()- Returns:
- order for this module
 
- 
applicableboolean applicable()Decide if the module should be evaluated during sequence evaluation. Module can be skipped, e.g. when acceptEmpty is set to true and credential type doesn't exist. Example usage: Hint might be configured for some users but not fo all. We want to show hint when it is set, but not, if it's not. Therefore, hint module should user acceptEmpty = true and this module will be automatically skipped when no hint is set.
- 
isSufficientboolean isSufficient()Very bad name :) Specify is the module on its own is considered as sufficient for the authentication to succeed. For example, password authenticated is sufficient, therefore user should be authenticated and allowed to work with midPoint. But focusIdentification cannot be considered as sufficient, as it might be of a great risk to allow user to authenticate only with using primary identifier. Insufficient modules are: focusIdentification, attributeVerification, hint If only those modules are in sequence, sequence cannot be evaluated as successuly authenticated
- 
setSufficientvoid setSufficient(boolean sufficient) 
- 
setFailureData
- 
getFailureDataAutheticationFailedData getFailureData()
- 
recordFailurevoid recordFailure(org.springframework.security.core.AuthenticationException exception) 
- 
setFocusType
- 
cloneModuleAuthentication clone()
 
-