Class AbstractEndpoint
- java.lang.Object
-
- pl.edu.icm.unity.engine.api.endpoint.AbstractEndpoint
-
- All Implemented Interfaces:
EndpointInstance
- Direct Known Subclasses:
AbstractWebEndpoint
public abstract class AbstractEndpoint extends Object implements EndpointInstance
Typical boilerplate for all endpoints.- Author:
- K. Benedyczak
-
-
Field Summary
Fields Modifier and Type Field Description protected List<AuthenticationFlow>authenticationFlowsprotected ResolvedEndpointdescriptionprotected Propertiesproperties
-
Constructor Summary
Constructors Constructor Description AbstractEndpoint()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddestroy()Stops the endpoint.List<AuthenticationFlow>getAuthenticationFlows()ResolvedEndpointgetEndpointDescription()StringgetSerializedConfiguration()voidinitialize(ResolvedEndpoint description, List<AuthenticationFlow> authenticators, String serializedConfiguration)protected voidsetAuthenticators(List<AuthenticationFlow> authenticationFlows)protected abstract voidsetSerializedConfiguration(String serializedState)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface pl.edu.icm.unity.engine.api.endpoint.EndpointInstance
start, updateAuthenticationFlows
-
-
-
-
Field Detail
-
description
protected ResolvedEndpoint description
-
authenticationFlows
protected List<AuthenticationFlow> authenticationFlows
-
properties
protected Properties properties
-
-
Method Detail
-
initialize
public void initialize(ResolvedEndpoint description, List<AuthenticationFlow> authenticators, String serializedConfiguration)
- Specified by:
initializein interfaceEndpointInstance- Parameters:
description- most of the endpoint's settingsauthenticators- authenticator instances for the endpoint.serializedConfiguration- endpoint specific configuration (as returned byEndpointInstance.getSerializedConfiguration().
-
getSerializedConfiguration
public String getSerializedConfiguration()
- Specified by:
getSerializedConfigurationin interfaceEndpointInstance- Returns:
- serialized representation of the endpoint configuration/state
-
setSerializedConfiguration
protected abstract void setSerializedConfiguration(String serializedState)
-
getEndpointDescription
public ResolvedEndpoint getEndpointDescription()
- Specified by:
getEndpointDescriptionin interfaceEndpointInstance
-
destroy
public void destroy() throws EngineExceptionDescription copied from interface:EndpointInstanceStops the endpoint.- Specified by:
destroyin interfaceEndpointInstance- Throws:
EngineException
-
getAuthenticationFlows
public List<AuthenticationFlow> getAuthenticationFlows()
- Specified by:
getAuthenticationFlowsin interfaceEndpointInstance- Returns:
- the current list of previously configured authentication flows (with initialize).
-
setAuthenticators
protected void setAuthenticators(List<AuthenticationFlow> authenticationFlows)
-
-