| | | 1 | | // Licensed to the .NET Foundation under one or more agreements. |
| | | 2 | | // The .NET Foundation licenses this file to you under the MIT license. |
| | | 3 | | |
| | | 4 | | using System.Security.Authentication; |
| | | 5 | | using System.Security.Authentication.ExtendedProtection; |
| | | 6 | | using System.Security.Principal; |
| | | 7 | | |
| | | 8 | | namespace System.Net.Security |
| | | 9 | | { |
| | | 10 | | /// <summary> |
| | | 11 | | /// Represents a property bag for server-side of an authentication exchange. |
| | | 12 | | /// </summary> |
| | | 13 | | /// <remarks> |
| | | 14 | | /// This property bag is used as argument for <see cref="NegotiateAuthentication" /> |
| | | 15 | | /// constructor for initializing a server-side authentication. |
| | | 16 | | /// </remarks> |
| | | 17 | | public class NegotiateAuthenticationServerOptions |
| | | 18 | | { |
| | | 19 | | /// <summary> |
| | | 20 | | /// Initializes a new instance of the <see cref="NegotiateAuthenticationServerOptions" /> class. |
| | | 21 | | /// </summary> |
| | 0 | 22 | | public NegotiateAuthenticationServerOptions() |
| | 0 | 23 | | { |
| | 0 | 24 | | } |
| | | 25 | | |
| | | 26 | | /// <summary> |
| | | 27 | | /// Specifies the GSSAPI authentication package used for the authentication. |
| | | 28 | | /// Common values are Negotiate, NTLM or Kerberos. Default value is Negotiate. |
| | | 29 | | /// </summary> |
| | 0 | 30 | | public string Package { get; set; } = NegotiationInfoClass.Negotiate; |
| | | 31 | | |
| | | 32 | | /// <summary> |
| | | 33 | | /// The NetworkCredential that is used to establish the identity of the client. |
| | | 34 | | /// Default value is CredentialCache.DefaultNetworkCredentials. |
| | | 35 | | /// </summary> |
| | 0 | 36 | | public NetworkCredential Credential { get; set; } = CredentialCache.DefaultNetworkCredentials; |
| | | 37 | | |
| | | 38 | | /// <summary> |
| | | 39 | | /// Channel binding that is used for extended protection. |
| | | 40 | | /// </summary> |
| | 0 | 41 | | public ChannelBinding? Binding { get; set; } |
| | | 42 | | |
| | | 43 | | /// <summary> |
| | | 44 | | /// Indicates the required level of protection of the authentication exchange |
| | | 45 | | /// and any further data exchange. Default value is None. |
| | | 46 | | /// </summary> |
| | 0 | 47 | | public ProtectionLevel RequiredProtectionLevel { get; set; } = ProtectionLevel.None; |
| | | 48 | | |
| | | 49 | | /// <summary> |
| | | 50 | | /// Indicates extended security and validation policies. |
| | | 51 | | /// </summary> |
| | 0 | 52 | | public ExtendedProtectionPolicy? Policy { get; set; } |
| | | 53 | | |
| | | 54 | | /// <summary> |
| | | 55 | | /// One of the <see cref="TokenImpersonationLevel" /> values, indicating how the server |
| | | 56 | | /// can use the client's credentials to access resources. |
| | | 57 | | /// </summary> |
| | 0 | 58 | | public TokenImpersonationLevel RequiredImpersonationLevel { get; set; } = TokenImpersonationLevel.None; |
| | | 59 | | } |
| | | 60 | | } |
| | | 61 | | |