public interface EndpointInstance
JsonSerializable
interface; authenticators, id, and description are always set via initialize method.
Lifecycle:
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Stops the endpoint.
|
List<AuthenticationOption> |
getAuthenticationOptions() |
pl.edu.icm.unity.types.endpoint.ResolvedEndpoint |
getEndpointDescription() |
String |
getSerializedConfiguration() |
void |
initialize(pl.edu.icm.unity.types.endpoint.ResolvedEndpoint endpointDescription,
List<AuthenticationOption> authenticatonOptions,
String serializedConfiguration) |
void |
start()
Starts the endpoint.
|
void |
updateAuthenticationOptions(List<AuthenticationOption> authenticationOptions)
Runtime update of the authenticators being used by this endpoint.
|
void initialize(pl.edu.icm.unity.types.endpoint.ResolvedEndpoint endpointDescription, List<AuthenticationOption> authenticatonOptions, String serializedConfiguration)
endpointDescription
- most of the endpoint's settingsauthenticatonOptions
- authenticator instances for the endpoint.serializedConfiguration
- endpoint specific configuration
(as returned by getSerializedConfiguration()
.pl.edu.icm.unity.types.endpoint.ResolvedEndpoint getEndpointDescription()
List<AuthenticationOption> getAuthenticationOptions()
String getSerializedConfiguration()
void start() throws pl.edu.icm.unity.exceptions.EngineException
pl.edu.icm.unity.exceptions.EngineException
void destroy() throws pl.edu.icm.unity.exceptions.EngineException
pl.edu.icm.unity.exceptions.EngineException
void updateAuthenticationOptions(List<AuthenticationOption> authenticationOptions) throws UnsupportedOperationException
handler
- authenticationOptions
- UnsupportedOperationException
- if the operation is unsupported and the endpoint must be
re-created instead.Copyright © 2017 Unity. All rights reserved.