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>
authenticationFlows
protected pl.edu.icm.unity.types.endpoint.ResolvedEndpoint
description
protected java.util.Properties
properties
-
Constructor Summary
Constructors Constructor Description AbstractEndpoint()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
destroy()
Stops the endpoint.java.util.List<AuthenticationFlow>
getAuthenticationFlows()
pl.edu.icm.unity.types.endpoint.ResolvedEndpoint
getEndpointDescription()
java.lang.String
getSerializedConfiguration()
void
initialize(pl.edu.icm.unity.types.endpoint.ResolvedEndpoint description, java.util.List<AuthenticationFlow> authenticators, java.lang.String serializedConfiguration)
protected void
setAuthenticators(java.util.List<AuthenticationFlow> authenticationFlows)
protected abstract void
setSerializedConfiguration(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:
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
public java.lang.String getSerializedConfiguration()
- Specified by:
getSerializedConfiguration
in 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:
getEndpointDescription
in interfaceEndpointInstance
-
destroy
public void destroy() throws pl.edu.icm.unity.exceptions.EngineException
Description copied from interface:EndpointInstance
Stops the endpoint.- Specified by:
destroy
in interfaceEndpointInstance
- Throws:
pl.edu.icm.unity.exceptions.EngineException
-
getAuthenticationFlows
public java.util.List<AuthenticationFlow> getAuthenticationFlows()
- Specified by:
getAuthenticationFlows
in interfaceEndpointInstance
- Returns:
- the current list of previously configured authentication flows (with initialize).
-
setAuthenticators
protected void setAuthenticators(java.util.List<AuthenticationFlow> authenticationFlows)
-
-