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 ResolvedEndpoint
protected Properties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Stops the endpoint.void
initialize
(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
-
authenticationFlows
-
properties
-
-
Constructor Details
-
AbstractEndpoint
public AbstractEndpoint()
-
-
Method Details
-
initialize
public void initialize(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
- Specified by:
getEndpointDescription
in interfaceEndpointInstance
-
destroy
Description copied from interface:EndpointInstance
Stops the endpoint.- Specified by:
destroy
in interfaceEndpointInstance
- Throws:
EngineException
-
getAuthenticationFlows
- Specified by:
getAuthenticationFlows
in interfaceEndpointInstance
- Returns:
- the current list of previously configured authentication flows (with initialize).
-
setAuthenticators
-