forked from UniStuttgart-VISUS/Visus.LdapAuthentication
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathILdapAttributeConverter.cs
28 lines (23 loc) · 1.1 KB
/
ILdapAttributeConverter.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// <copyright file="ILdapAttributeConverter.cs" company="Visualisierungsinstitut der Universität Stuttgart">
// Copyright © 2021 - 2024 Visualisierungsinstitut der Universität Stuttgart.
// Licensed under the MIT licence. See LICENCE file for details.
// </copyright>
// <author>Christoph Müller</author>
using System.DirectoryServices.Protocols;
namespace Visus.DirectoryAuthentication {
/// <summary>
/// Converts an <see cref="LdapAttribute"/> into a string representation
/// that can be used as property of a <see cref="ILdapUser"/> or as a
/// <see cref="System.Security.Claims.Claim"/>.
/// </summary>
public interface ILdapAttributeConverter {
/// <summary>
/// Converts <paramref name="attribute"/> into a user-defined object,
/// normally a string.
/// </summary>
/// <param name="attribute">The attribute to be converted.</param>
/// <param name="parameter">An optional converter parameter.</param>
/// <returns>The converted object.</returns>
object Convert(DirectoryAttribute attribute, object parameter);
}
}