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 ResolvedEndpointprotected Properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Stops the endpoint.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, waitMethods 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:
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
- Specified by:
getEndpointDescriptionin interfaceEndpointInstance
-
destroy
Description copied from interface:EndpointInstanceStops the endpoint.- Specified by:
destroyin interfaceEndpointInstance- Throws:
EngineException
-
getAuthenticationFlows
- Specified by:
getAuthenticationFlowsin interfaceEndpointInstance- Returns:
- the current list of previously configured authentication flows (with initialize).
-
setAuthenticators
-