forked from Sustainsys/Saml2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRequestedAttribute.cs
51 lines (45 loc) · 1.83 KB
/
RequestedAttribute.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using Microsoft.IdentityModel.Tokens.Saml2;
using System;
namespace Sustainsys.Saml2.Metadata
{
/// <summary>
/// Specifies an attribute requested by the service provider.
/// </summary>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1711:IdentifiersShouldNotHaveIncorrectSuffix")]
public class RequestedAttribute : Saml2Attribute
{
/// <summary>
/// Ctor
/// </summary>
/// <param name="name">Name of the attribute.</param>
public RequestedAttribute(string name)
: base(name)
{ }
/// <summary>
/// Ctor
/// </summary>
/// <param name="name">Name of the attribute.</param>
/// <param name="value">Value of the attribute.</param>
public RequestedAttribute(string name, string value)
: base(name, value)
{ }
/// <summary>
/// Is this attribute required by the service provider?
/// </summary>
public bool? IsRequired { get; set; }
/// <summary>
/// Uri used for NameFormat to specify that the Name is a Uri.
/// </summary>
public static readonly Uri AttributeNameFormatUri = new Uri("urn:oasis:names:tc:SAML:2.0:attrname-format:uri");
/// <summary>
/// Uri used for NameFormat to specify that the format of the Name
/// is unspecified.
/// </summary>
public static readonly Uri AttributeNameFormatUnspecified = new Uri("urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified");
/// <summary>
/// Uri used for NameFormat to specify that the format of the Name
/// fulfills the standard's basic requirements.
/// </summary>
public static readonly Uri AttributeNameFormatBasic = new Uri("urn:oasis:names:tc:SAML:2.0:attrname-format:basic");
}
}