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 java.lang.Object implements EndpointInstance
Typical boilerplate for all endpoints.- Author:
- K. Benedyczak
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<AuthenticationFlow>authenticationFlowsprotected pl.edu.icm.unity.types.endpoint.ResolvedEndpointdescriptionprotected java.util.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.java.util.List<AuthenticationFlow>getAuthenticationFlows()pl.edu.icm.unity.types.endpoint.ResolvedEndpointgetEndpointDescription()java.lang.StringgetSerializedConfiguration()voidinitialize(pl.edu.icm.unity.types.endpoint.ResolvedEndpoint description, java.util.List<AuthenticationFlow> authenticators, java.lang.String serializedConfiguration)protected voidsetAuthenticators(java.util.List<AuthenticationFlow> authenticationFlows)protected abstract voidsetSerializedConfiguration(java.lang.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 pl.edu.icm.unity.types.endpoint.ResolvedEndpoint description
-
authenticationFlows
protected java.util.List<AuthenticationFlow> authenticationFlows
-
properties
protected java.util.Properties properties
-
-
Method Detail
-
initialize
public void initialize(pl.edu.icm.unity.types.endpoint.ResolvedEndpoint description, java.util.List<AuthenticationFlow> authenticators, java.lang.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 java.lang.String getSerializedConfiguration()
- Specified by:
getSerializedConfigurationin interfaceEndpointInstance- Returns:
- serialized representation of the endpoint configuration/state
-
setSerializedConfiguration
protected abstract void setSerializedConfiguration(java.lang.String serializedState)
-
getEndpointDescription
public pl.edu.icm.unity.types.endpoint.ResolvedEndpoint getEndpointDescription()
- Specified by:
getEndpointDescriptionin interfaceEndpointInstance
-
destroy
public void destroy() throws pl.edu.icm.unity.exceptions.EngineExceptionDescription copied from interface:EndpointInstanceStops the endpoint.- Specified by:
destroyin interfaceEndpointInstance- Throws:
pl.edu.icm.unity.exceptions.EngineException
-
getAuthenticationFlows
public java.util.List<AuthenticationFlow> getAuthenticationFlows()
- Specified by:
getAuthenticationFlowsin interfaceEndpointInstance- Returns:
- the current list of previously configured authentication flows (with initialize).
-
setAuthenticators
protected void setAuthenticators(java.util.List<AuthenticationFlow> authenticationFlows)
-
-