Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / IdentityModel / System / IdentityModel / Tokens / SamlAssertionKeyIdentifierClause.cs / 1 / SamlAssertionKeyIdentifierClause.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.IdentityModel.Tokens { using System.Globalization; public class SamlAssertionKeyIdentifierClause : SecurityKeyIdentifierClause { readonly string assertionId; readonly string valueType; readonly string tokenTypeUri; readonly string binding; readonly string location; readonly string authorityKind; public SamlAssertionKeyIdentifierClause(string assertionId) : this(assertionId, null, 0) { } public SamlAssertionKeyIdentifierClause(string assertionId, byte[] derivationNonce, int derivationLength) : this(assertionId, derivationNonce, derivationLength, null, null, null, null, null) { } internal SamlAssertionKeyIdentifierClause(string assertionId, byte[] derivationNonce, int derivationLength, string valueType, string tokenTypeUri, string binding, string location, string authorityKind) : base(null, derivationNonce, derivationLength) { if (assertionId == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("assertionId"); } this.assertionId = assertionId; this.valueType = valueType; this.tokenTypeUri = tokenTypeUri; this.binding = binding; this.location = location; this.authorityKind = authorityKind; } public string AssertionId { get { return this.assertionId; } } internal string TokenTypeUri { get { return this.tokenTypeUri; } } internal string ValueType { get { return this.valueType; } } internal string Binding { get { return this.binding; } } internal string Location { get { return this.location; } } internal string AuthorityKind { get { return this.authorityKind; } } public override bool Matches(SecurityKeyIdentifierClause keyIdentifierClause) { SamlAssertionKeyIdentifierClause that = keyIdentifierClause as SamlAssertionKeyIdentifierClause; // PreSharp Bug: Parameter 'that' to this public method must be validated: A null-dereference can occur here. #pragma warning suppress 56506 return ReferenceEquals(this, that) || (that != null && that.Matches(this.assertionId)); } public bool Matches(string assertionId) { return this.assertionId == assertionId; } public override string ToString() { return string.Format(CultureInfo.InvariantCulture, "SamlAssertionKeyIdentifierClause(AssertionId = '{0}')", this.AssertionId); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OrthographicCamera.cs
- ServiceProviders.cs
- ScriptResourceAttribute.cs
- ResourcePool.cs
- ConcurrentQueue.cs
- ValidationSummary.cs
- followingquery.cs
- StrokeCollectionConverter.cs
- Pair.cs
- SQLStringStorage.cs
- SoapReflectionImporter.cs
- ExpressionVisitorHelpers.cs
- TextTabProperties.cs
- Number.cs
- CmsInterop.cs
- CallbackValidatorAttribute.cs
- AtomicFile.cs
- SerializationException.cs
- HttpCachePolicyWrapper.cs
- SecureStringHasher.cs
- NetNamedPipeSecurity.cs
- XmlText.cs
- AutomationPatternInfo.cs
- RequestCacheValidator.cs
- IPHostEntry.cs
- ManagedWndProcTracker.cs
- RewritingSimplifier.cs
- M3DUtil.cs
- DataControlFieldHeaderCell.cs
- QilReference.cs
- FontStretches.cs
- MetadataUtilsSmi.cs
- NTAccount.cs
- HttpCachePolicyBase.cs
- XomlCompilerResults.cs
- TextModifier.cs
- ClipboardProcessor.cs
- SafeRightsManagementEnvironmentHandle.cs
- MsmqIntegrationProcessProtocolHandler.cs
- BufferedGraphicsContext.cs
- Descriptor.cs
- Header.cs
- InOutArgumentConverter.cs
- ExeConfigurationFileMap.cs
- DiagnosticsConfigurationHandler.cs
- TdsValueSetter.cs
- GrammarBuilderBase.cs
- MouseWheelEventArgs.cs
- TypeUtil.cs
- HttpHandlerActionCollection.cs
- IOException.cs
- DataSetMappper.cs
- SocketInformation.cs
- SecUtil.cs
- ListViewDesigner.cs
- Function.cs
- Deserializer.cs
- InfoCardArgumentException.cs
- EntityDataSourceColumn.cs
- TextBox.cs
- StreamGeometryContext.cs
- UserInitiatedNavigationPermission.cs
- GradientStopCollection.cs
- ELinqQueryState.cs
- EventProviderClassic.cs
- DataControlField.cs
- BitVec.cs
- DesignTimeValidationFeature.cs
- WebPartUserCapability.cs
- Char.cs
- DocumentCollection.cs
- FilteredAttributeCollection.cs
- Timeline.cs
- Compilation.cs
- WS2007FederationHttpBinding.cs
- DataColumnMappingCollection.cs
- ScriptResourceAttribute.cs
- GPRECT.cs
- HyperLink.cs
- HtmlTableRowCollection.cs
- FocusTracker.cs
- QueryComponents.cs
- ColorBlend.cs
- FixedLineResult.cs
- BitConverter.cs
- safex509handles.cs
- DNS.cs
- DataGridTableStyleMappingNameEditor.cs
- Timeline.cs
- ToolStripCustomTypeDescriptor.cs
- Transform3D.cs
- AuthenticationModulesSection.cs
- Thickness.cs
- RenderDataDrawingContext.cs
- TextStore.cs
- PropertyCondition.cs
- SqlFlattener.cs
- TrustLevelCollection.cs
- TextProviderWrapper.cs
- TreeNode.cs