Class AbstractEndpoint
java.lang.Object
pl.edu.icm.unity.engine.api.endpoint.AbstractEndpoint
- All Implemented Interfaces:
EndpointInstance
- Direct Known Subclasses:
AbstractWebEndpoint
Typical boilerplate for all endpoints.
- Author:
- K. Benedyczak
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<AuthenticationFlow>protected pl.edu.icm.unity.base.endpoint.ResolvedEndpointprotected Properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Stops the endpoint.pl.edu.icm.unity.base.endpoint.ResolvedEndpointvoidinitialize(pl.edu.icm.unity.base.endpoint.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, waitMethods inherited from interface pl.edu.icm.unity.engine.api.endpoint.EndpointInstance
start, updateAuthenticationFlows
-
Field Details
-
description
protected pl.edu.icm.unity.base.endpoint.ResolvedEndpoint description -
authenticationFlows
-
properties
-
-
Constructor Details
-
AbstractEndpoint
public AbstractEndpoint()
-
-
Method Details
-
initialize
public void initialize(pl.edu.icm.unity.base.endpoint.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
- Specified by:
getSerializedConfigurationin interfaceEndpointInstance- Returns:
- serialized representation of the endpoint configuration/state
-
setSerializedConfiguration
-
getEndpointDescription
public pl.edu.icm.unity.base.endpoint.ResolvedEndpoint getEndpointDescription()- Specified by:
getEndpointDescriptionin interfaceEndpointInstance
-
destroy
public void destroy() throws pl.edu.icm.unity.base.exceptions.EngineExceptionDescription copied from interface:EndpointInstanceStops the endpoint.- Specified by:
destroyin interfaceEndpointInstance- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
getAuthenticationFlows
- Specified by:
getAuthenticationFlowsin interfaceEndpointInstance- Returns:
- the current list of previously configured authentication flows (with initialize).
-
setAuthenticators
-