Package pl.edu.icm.unity.engine.api
Interface AuthenticationFlowManagement
-
public interface AuthenticationFlowManagementAPI for authentication flow management.- Author:
- P.Piernik
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddAuthenticationFlow(pl.edu.icm.unity.types.authn.AuthenticationFlowDefinition authenticatorsFlowDefinition)Add new authentication flowpl.edu.icm.unity.types.authn.AuthenticationFlowDefinitiongetAuthenticationFlow(String name)Get authentication flow by given nameCollection<pl.edu.icm.unity.types.authn.AuthenticationFlowDefinition>getAuthenticationFlows()voidremoveAuthenticationFlow(String toRemove)Removes an existing authentication flow.voidupdateAuthenticationFlow(pl.edu.icm.unity.types.authn.AuthenticationFlowDefinition authFlowdef)Update existing authentication flow
-
-
-
Method Detail
-
addAuthenticationFlow
void addAuthenticationFlow(pl.edu.icm.unity.types.authn.AuthenticationFlowDefinition authenticatorsFlowDefinition) throws pl.edu.icm.unity.exceptions.EngineExceptionAdd new authentication flow- Throws:
pl.edu.icm.unity.exceptions.EngineException
-
removeAuthenticationFlow
void removeAuthenticationFlow(String toRemove) throws pl.edu.icm.unity.exceptions.EngineException
Removes an existing authentication flow. The authentication flow must not be used by any of the endpoints, to be removed.- Parameters:
toRemove- authentication flow id- Throws:
pl.edu.icm.unity.exceptions.EngineException
-
getAuthenticationFlows
Collection<pl.edu.icm.unity.types.authn.AuthenticationFlowDefinition> getAuthenticationFlows() throws pl.edu.icm.unity.exceptions.EngineException
- Returns:
- list of currently configured authentication flow
- Throws:
pl.edu.icm.unity.exceptions.EngineException
-
getAuthenticationFlow
pl.edu.icm.unity.types.authn.AuthenticationFlowDefinition getAuthenticationFlow(String name) throws pl.edu.icm.unity.exceptions.EngineException
Get authentication flow by given name- Returns:
- authentication flow
- Throws:
pl.edu.icm.unity.exceptions.EngineException
-
updateAuthenticationFlow
void updateAuthenticationFlow(pl.edu.icm.unity.types.authn.AuthenticationFlowDefinition authFlowdef) throws pl.edu.icm.unity.exceptions.EngineExceptionUpdate existing authentication flow- Throws:
pl.edu.icm.unity.exceptions.EngineException
-
-