File: WSTrustFeb2005Constants.cs

package info (click to toggle)
mono 6.14.1%2Bds2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,282,732 kB
  • sloc: cs: 11,182,461; xml: 2,850,281; ansic: 699,123; cpp: 122,919; perl: 58,604; javascript: 30,841; asm: 21,845; makefile: 19,602; sh: 10,973; python: 4,772; pascal: 925; sql: 859; sed: 16; php: 1
file content (162 lines) | stat: -rw-r--r-- 8,675 bytes parent folder | download | duplicates (7)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
//-----------------------------------------------------------------------
// <copyright file="WSTrustFeb2005Constants.cs" company="Microsoft">
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace System.IdentityModel.Protocols.WSTrust
{
    /// <summary>
    /// Defines constants for WS-Trust version Feb,2005
    /// </summary>
    internal static class WSTrustFeb2005Constants
    {
#pragma warning disable 1591
        public const string NamespaceURI = "http://schemas.xmlsoap.org/ws/2005/02/trust";
        public const string Prefix = "t";
        public const string SchemaLocation = "http://schemas.xmlsoap.org/ws/2005/02/trust/ws-trust.xsd";

        public const string Schema = @"<?xml version='1.0' encoding='utf-8'?>
<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'
           xmlns:wst='http://schemas.xmlsoap.org/ws/2005/02/trust'
           targetNamespace='http://schemas.xmlsoap.org/ws/2005/02/trust'
           elementFormDefault='qualified' >

<xs:element name='RequestSecurityToken' type='wst:RequestSecurityTokenType' />
  <xs:complexType name='RequestSecurityTokenType' >
    <xs:choice minOccurs='0' maxOccurs='unbounded' >
        <xs:any namespace='##any' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
    </xs:choice>
    <xs:attribute name='Context' type='xs:anyURI' use='optional' />
    <xs:anyAttribute namespace='##other' processContents='lax' />
  </xs:complexType>

<xs:element name='RequestSecurityTokenResponse' type='wst:RequestSecurityTokenResponseType' />
  <xs:complexType name='RequestSecurityTokenResponseType' >
    <xs:choice minOccurs='0' maxOccurs='unbounded' >
        <xs:any namespace='##any' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
    </xs:choice>
    <xs:attribute name='Context' type='xs:anyURI' use='optional' />
    <xs:anyAttribute namespace='##other' processContents='lax' />
  </xs:complexType>

        </xs:schema>";

        public static class Actions
        {
            public const string Issue = "http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue";
            public const string IssueResponse = "http://schemas.xmlsoap.org/ws/2005/02/trust/RSTR/Issue";

            public const string Renew = "http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Renew";
            public const string RenewResponse = "http://schemas.xmlsoap.org/ws/2005/02/trust/RSTR/Renew";

            public const string Validate = "http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Validate";
            public const string ValidateResponse = "http://schemas.xmlsoap.org/ws/2005/02/trust/RSTR/Validate";

            public const string Cancel = "http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Cancel";
            public const string CancelResponse = "http://schemas.xmlsoap.org/ws/2005/02/trust/RSTR/Cancel";

            public const string RequestSecurityContextToken = "http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT";
            public const string RequestSecurityContextTokenResponse = "http://schemas.xmlsoap.org/ws/2005/02/trust/RSTR/SCT";

            public const string RequestSecurityContextTokenCancel = "http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT-Cancel";
            public const string RequestSecurityContextTokenResponseCancel = "http://schemas.xmlsoap.org/ws/2005/02/trust/RSTR/SCT-Cancel";
        }

        public static class AttributeNames
        {
            public const string Allow = "Allow";
            public const string Context = "Context";
            public const string EncodingType = "EncodingType";
            public const string OK = "OK";
            public const string Type = "Type";
            public const string ValueType = "ValueType";
            public const string Dialect = "Dialect";
        }

        public static class ElementNames
        {
            public const string AllowPostdating = "AllowPostdating";
            public const string AuthenticationType = "AuthenticationType";
            public const string BinarySecret = "BinarySecret";
            public const string BinaryExchange = "BinaryExchange";
            public const string Code = "Code";
            public const string Delegatable = "Delegatable";
            public const string DelegateTo = "DelegateTo";
            public const string Encryption = "Encryption";
            public const string EncryptionAlgorithm = "EncryptionAlgorithm";
            public const string EncryptWith = "EncryptWith";
            public const string Entropy = "Entropy";
            public const string Forwardable = "Forwardable";
            public const string Lifetime = "Lifetime";
            public const string Claims = "Claims";
            public const string ComputedKey = "ComputedKey";
            public const string ComputedKeyAlgorithm = "ComputedKeyAlgorithm";
            public const string CanonicalizationAlgorithm = "CanonicalizationAlgorithm";
            public const string CancelTarget = "CancelTarget";
            public const string Issuer = "Issuer";
            public const string KeyType = "KeyType";
            public const string KeySize = "KeySize";
            public const string OnBehalfOf = "OnBehalfOf";
            public const string Participant = "Participant";
            public const string Participants = "Participants";
            public const string Primary = "Primary";
            public const string ProofEncryption = "ProofEncryption";
            public const string Reason = "Reason";
            public const string Renewing = "Renewing";
            public const string RenewTarget = "RenewTarget";
            public const string RequestType = "RequestType";
            public const string RequestSecurityTokenResponse = "RequestSecurityTokenResponse";
            public const string RequestSecurityToken = "RequestSecurityToken";
            public const string RequestedSecurityToken = "RequestedSecurityToken";
            public const string RequestedProofToken = "RequestedProofToken";
            public const string RequestKeySize = "RequestKeySize";
            public const string RequestedAttachedReference = "RequestedAttachedReference";
            public const string RequestedUnattachedReference = "RequestedUnattachedReference";
            public const string RequestedTokenCancelled = "RequestedTokenCancelled";
            public const string SecurityContextToken = "SecurityContextToken";
            public const string SignatureAlgorithm = "SignatureAlgorithm";
            public const string SignWith = "SignWith";
            public const string Status = "Status";
            public const string TokenType = "TokenType";
            public const string UseKey = "UseKey";                       
        }

        public static class FaultCodeValues
        {
            public const string AuthenticationBadElements = "AuthenticationBadElements";
            public const string BadRequest = "BadRequest";
            public const string ExpiredData = "ExpiredData";
            public const string FailedAuthentication = "FailedAuthentication";
            public const string InvalidRequest = "InvalidRequest";
            public const string InvalidScope = "InvalidScope";
            public const string InvalidSecurityToken = "InvalidSecurityToken";
            public const string InvalidTimeRange = "InvalidTimeRange";
            public const string RenewNeeded = "RenewNeeded";
            public const string RequestFailed = "RequestFailed";
            public const string UnableToRenew = "UnableToRenew";
        }

        public static class RequestTypes
        {
            public const string Issue = "http://schemas.xmlsoap.org/ws/2005/02/trust/Issue";
            public const string Renew = "http://schemas.xmlsoap.org/ws/2005/02/trust/Renew";
            public const string Validate = "http://schemas.xmlsoap.org/ws/2005/02/trust/Validate";
            public const string Cancel = "http://schemas.xmlsoap.org/ws/2005/02/trust/Cancel";
        }

        public static class KeyTypes
        {
            public const string Asymmetric = "http://schemas.xmlsoap.org/ws/2005/02/trust/PublicKey";
            public const string Symmetric = "http://schemas.xmlsoap.org/ws/2005/02/trust/SymmetricKey";
            public const string Bearer = "http://schemas.xmlsoap.org/ws/2005/05/identity/NoProofKey";
        }
        
        public static class ComputedKeyAlgorithms
        {
            public const string PSHA1 = "http://schemas.xmlsoap.org/ws/2005/02/trust/CK/PSHA1";
        }

#pragma warning restore 1591
    }
}