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
Modifier and TypeFieldDescriptionprotected List<AuthenticationFlow>
protected pl.edu.icm.unity.base.endpoint.ResolvedEndpoint
protected Properties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Stops the endpoint.pl.edu.icm.unity.base.endpoint.ResolvedEndpoint
void
initialize
(pl.edu.icm.unity.base.endpoint.ResolvedEndpoint description, List<AuthenticationFlow> authenticators, String serializedConfiguration) protected void
setAuthenticators
(List<AuthenticationFlow> authenticationFlows) protected abstract void
setSerializedConfiguration
(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 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:
initialize
in 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:
getSerializedConfiguration
in interfaceEndpointInstance
- Returns:
- serialized representation of the endpoint configuration/state
-
setSerializedConfiguration
-
getEndpointDescription
public pl.edu.icm.unity.base.endpoint.ResolvedEndpoint getEndpointDescription()- Specified by:
getEndpointDescription
in interfaceEndpointInstance
-
destroy
public void destroy() throws pl.edu.icm.unity.base.exceptions.EngineExceptionDescription copied from interface:EndpointInstance
Stops the endpoint.- Specified by:
destroy
in interfaceEndpointInstance
- Throws:
pl.edu.icm.unity.base.exceptions.EngineException
-
getAuthenticationFlows
- Specified by:
getAuthenticationFlows
in interfaceEndpointInstance
- Returns:
- the current list of previously configured authentication flows (with initialize).
-
setAuthenticators
-