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 Object implements EndpointInstance
Typical boilerplate for all endpoints.
Author:
K. Benedyczak
  • Field Details

    • description

      protected pl.edu.icm.unity.base.endpoint.ResolvedEndpoint description
    • authenticationFlows

      protected List<AuthenticationFlow> authenticationFlows
    • properties

      protected Properties 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 interface EndpointInstance
      Parameters:
      description - most of the endpoint's settings
      authenticators - authenticator instances for the endpoint.
      serializedConfiguration - endpoint specific configuration (as returned by EndpointInstance.getSerializedConfiguration().
    • getSerializedConfiguration

      public String getSerializedConfiguration()
      Specified by:
      getSerializedConfiguration in interface EndpointInstance
      Returns:
      serialized representation of the endpoint configuration/state
    • setSerializedConfiguration

      protected abstract void setSerializedConfiguration(String serializedState)
    • getEndpointDescription

      public pl.edu.icm.unity.base.endpoint.ResolvedEndpoint getEndpointDescription()
      Specified by:
      getEndpointDescription in interface EndpointInstance
    • destroy

      public void destroy() throws pl.edu.icm.unity.base.exceptions.EngineException
      Description copied from interface: EndpointInstance
      Stops the endpoint.
      Specified by:
      destroy in interface EndpointInstance
      Throws:
      pl.edu.icm.unity.base.exceptions.EngineException
    • getAuthenticationFlows

      public List<AuthenticationFlow> getAuthenticationFlows()
      Specified by:
      getAuthenticationFlows in interface EndpointInstance
      Returns:
      the current list of previously configured authentication flows (with initialize).
    • setAuthenticators

      protected void setAuthenticators(List<AuthenticationFlow> authenticationFlows)