Class EndpointAuthenticationService
- Namespace
- Dynamicweb.DataIntegration.EndpointManagement
- Assembly
- Dynamicweb.DataIntegration.dll
Service for endpoint authentication.
public class EndpointAuthenticationService : ICacheStorage<int, EndpointAuthentication>, ICacheStorage<int>, ICacheStorage
- Inheritance
-
EndpointAuthenticationService
- Implements
- Inherited Members
Constructors
EndpointAuthenticationService()
Initializes a new instance of the EndpointAuthenticationService class.
public EndpointAuthenticationService()
Properties
Info
Information about the object cache
public CacheInformation Info { get; }
Property Value
Methods
ClearCache()
Resets all keys to the default value for objects stored in the object cache
public void ClearCache()
ClearCache(IEnumerable<int>)
Resets the specified keys to the default value for objects stored in the object cache
public void ClearCache(IEnumerable<int> keys)
Parameters
keysIEnumerable<int>Keys to reset
ClearCache(int)
Resets the specified key to the default value for objects stored in the object cache
public void ClearCache(int key)
Parameters
keyintKey to reset
DeleteEndpointAuthentication(int)
Deletes the Endpoint Authentication.
public void DeleteEndpointAuthentication(int id)
Parameters
idintThe identifier.
GetAuthenticationToSave(int, string, int?, int?)
public EndpointAuthentication GetAuthenticationToSave(int authenticationId, string authenticationAddInType, int? collectionId = null, int? endpointId = null)
Parameters
Returns
GetEndpointAuthenticationById(int)
Gets an Endpoint Authentication by id.
public EndpointAuthentication? GetEndpointAuthenticationById(int id)
Parameters
idintThe identifier.
Returns
- EndpointAuthentication
An instance of Endpoint, if found, otherwise null.
GetEndpointAuthentications()
Gets the endpoint Authentications.
public IEnumerable<EndpointAuthentication> GetEndpointAuthentications()
Returns
- IEnumerable<EndpointAuthentication>
A collection of endpoint Authentications.
SaveEndpointAuthentication(EndpointAuthentication)
Saves the Endpoint Authentication.
public void SaveEndpointAuthentication(EndpointAuthentication endpointAuthentication)
Parameters
endpointAuthenticationEndpointAuthenticationThe Endpoint Authentication.
UpdateToken(EndpointAuthentication, string)
public void UpdateToken(EndpointAuthentication endpointAuthentication, string token)
Parameters
endpointAuthenticationEndpointAuthenticationtokenstring
ValidateAuthenticationAddIn(EndpointAuthentication)
public string? ValidateAuthenticationAddIn(EndpointAuthentication endpointAuthentication)
Parameters
endpointAuthenticationEndpointAuthentication