Interface EndpointInstance
-
- All Known Subinterfaces:
WebAppEndpointInstance
- All Known Implementing Classes:
AbstractEndpoint
,AbstractWebEndpoint
public interface EndpointInstance
Generic endpoint instance. Implementations must persist/load only the custom settings using theJsonSerializable
interface; authenticators, id, and description are always set via initialize method. Lifecycle:- initialize (once)
- operation....
- destroy (once)
- Author:
- K. Benedyczak
-
-
Method Summary
All Methods Instance Methods Abstract 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 endpointDescription, java.util.List<AuthenticationFlow> authenticatonOptions, java.lang.String serializedConfiguration)
void
start()
Starts the endpoint.void
updateAuthenticationFlows(java.util.List<AuthenticationFlow> authenticationFlows)
Runtime update of the authenticators being used by this endpoint.
-
-
-
Method Detail
-
initialize
void initialize(pl.edu.icm.unity.types.endpoint.ResolvedEndpoint endpointDescription, java.util.List<AuthenticationFlow> authenticatonOptions, java.lang.String serializedConfiguration)
- Parameters:
endpointDescription
- most of the endpoint's settingsauthenticatonOptions
- authenticator instances for the endpoint.serializedConfiguration
- endpoint specific configuration (as returned bygetSerializedConfiguration()
.
-
getEndpointDescription
pl.edu.icm.unity.types.endpoint.ResolvedEndpoint getEndpointDescription()
-
getAuthenticationFlows
java.util.List<AuthenticationFlow> getAuthenticationFlows()
- Returns:
- the current list of previously configured authentication flows (with initialize).
-
getSerializedConfiguration
java.lang.String getSerializedConfiguration()
- Returns:
- serialized representation of the endpoint configuration/state
-
start
void start() throws pl.edu.icm.unity.exceptions.EngineException
Starts the endpoint. After this method returns the endpoint should be made available for usage.- Throws:
pl.edu.icm.unity.exceptions.EngineException
-
destroy
void destroy() throws pl.edu.icm.unity.exceptions.EngineException
Stops the endpoint.- Throws:
pl.edu.icm.unity.exceptions.EngineException
-
updateAuthenticationFlows
void updateAuthenticationFlows(java.util.List<AuthenticationFlow> authenticationFlows) throws java.lang.UnsupportedOperationException
Runtime update of the authenticators being used by this endpoint.- Parameters:
handler
-authenticationFlows
-- Throws:
java.lang.UnsupportedOperationException
- if the operation is unsupported and the endpoint must be re-created instead.
-
-