//----------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------- namespace System.IdentityModel { /// /// Defines constants used in WS-Security 1.0 standard schema. /// internal static class WSSecurity10Constants { #pragma warning disable 1591 public const string FragmentBaseAddress = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0"; public const string Namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"; public const string Prefix = "wsse"; public const string Base64EncodingType = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"; public const string HexBinaryEncodingType = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#HexBinary"; public const string KerberosTokenType1510 = "http://docs.oasis-open.org/wss/oasis-wss-kerberos-token-profile-1.1#GSS_Kerberosv5_AP_REQ1510"; public const string KerberosTokenTypeGSS = "http://docs.oasis-open.org/wss/oasis-wss-kerberos-token-profile-1.1#GSS_Kerberosv5_AP_REQ"; public const string TextEncodingType = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Text"; public const string X509TokenType = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"; public const string UPTokenPasswordTextValue = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"; public static class Attributes { public const string ValueType = "ValueType"; public const string EncodingType = "EncodingType"; public const string URI = "URI"; public const string Type = "Type"; } public static class Elements { public const string BinarySecurityToken = "BinarySecurityToken"; public const string Reference = "Reference"; public const string KeyIdentifier = "KeyIdentifier"; public const string SecurityTokenReference = "SecurityTokenReference"; public const string UsernameToken = "UsernameToken"; public const string Username = "Username"; public const string Password = "Password"; public const string Nonce = "Nonce"; public const string Created = "Created"; } public static class EncodingTypes { public const string Base64 = FragmentBaseAddress + "#Base64Binary"; public const string HexBinary = FragmentBaseAddress + "#HexBinary"; public const string Text = FragmentBaseAddress + "#Text"; } public static class FaultCodes { public const string FailedAuthentication = "FailedAuthentication"; public const string FailedCheck = "FailedCheck"; public const string InvalidSecurity = "InvalidSecurity"; public const string InvalidSecurityToken = "InvalidSecurityToken"; public const string MessageExpired = "MessageExpired"; public const string SecurityTokenUnavailable = "SecurityTokenUnavailable"; public const string UnsupportedAlgorithm = "UnsupportedAlgorithm"; public const string UnsupportedSecurityToken = "UnsupportedSecurityToken"; } #pragma warning restore 1591 } }