Class MidpointAuthentication
- java.lang.Object
-
- org.springframework.security.authentication.AbstractAuthenticationToken
-
- com.evolveum.midpoint.model.api.authentication.MidpointAuthentication
-
- All Implemented Interfaces:
Serializable
,Principal
,org.springframework.security.core.Authentication
,org.springframework.security.core.CredentialsContainer
public class MidpointAuthentication extends org.springframework.security.authentication.AbstractAuthenticationToken
- Author:
- skublik
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MidpointAuthentication(AuthenticationSequenceType sequence)
-
Method Summary
-
Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, eraseCredentials, getDetails, hashCode, setDetails, toString
-
-
-
-
Constructor Detail
-
MidpointAuthentication
public MidpointAuthentication(AuthenticationSequenceType sequence)
-
-
Method Detail
-
getAuthModules
public List<AuthModule> getAuthModules()
-
setAuthModules
public void setAuthModules(List<AuthModule> authModules)
-
getSequence
public AuthenticationSequenceType getSequence()
-
getAuthenticationChannel
public AuthenticationChannel getAuthenticationChannel()
-
setAuthenticationChannel
public void setAuthenticationChannel(AuthenticationChannel authenticationChannel)
-
getAuthentications
public List<ModuleAuthentication> getAuthentications()
-
addAuthentications
public void addAuthentications(ModuleAuthentication authentication)
-
getAuthorities
public Collection<org.springframework.security.core.GrantedAuthority> getAuthorities()
- Specified by:
getAuthorities
in interfaceorg.springframework.security.core.Authentication
- Overrides:
getAuthorities
in classorg.springframework.security.authentication.AbstractAuthenticationToken
-
setAuthorities
public void setAuthorities(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
-
getModules
public List<AuthenticationSequenceModuleType> getModules()
-
getCredentials
public Object getCredentials()
-
setCredential
public void setCredential(Object credential)
-
getPrincipal
public Object getPrincipal()
-
setPrincipal
public void setPrincipal(Object principal)
-
setAuthenticated
public void setAuthenticated(boolean authenticated)
- Specified by:
setAuthenticated
in interfaceorg.springframework.security.core.Authentication
- Overrides:
setAuthenticated
in classorg.springframework.security.authentication.AbstractAuthenticationToken
-
setSessionId
public void setSessionId(String sessionId)
-
getSessionId
public String getSessionId()
-
isAuthenticated
public boolean isAuthenticated()
- Specified by:
isAuthenticated
in interfaceorg.springframework.security.core.Authentication
- Overrides:
isAuthenticated
in classorg.springframework.security.authentication.AbstractAuthenticationToken
-
getAuthenticationByName
public ModuleAuthentication getAuthenticationByName(String moduleName)
-
isProcessing
public boolean isProcessing()
-
getIndexOfProcessingModule
public int getIndexOfProcessingModule(boolean createEmptyAuthenticationIfNeeded)
-
getIndexOfModule
public int getIndexOfModule(ModuleAuthentication authentication)
-
getProcessingModuleAuthentication
public ModuleAuthentication getProcessingModuleAuthentication()
-
isAuthenticationFailed
public boolean isAuthenticationFailed()
-
getName
public String getName()
-
getParallelProcessingModules
public List<ModuleAuthentication> getParallelProcessingModules()
-
resolveParallelModules
public int resolveParallelModules(javax.servlet.http.HttpServletRequest request, int actualIndex)
-
isLast
public boolean isLast(ModuleAuthentication moduleAuthentication)
-
-