Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / IdentityModel / System / IdentityModel / Tokens / SecurityKeyIdentifierClause.cs / 1305376 / SecurityKeyIdentifierClause.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.IdentityModel.Tokens { // All subclasses are required to be thread-safe and immutable // Self-resolving clauses such as RSA and X509 raw data should // override CanCreateKey and return true, and implement // CreateKey() public abstract class SecurityKeyIdentifierClause { readonly string clauseType; byte[] derivationNonce; int derivationLength; protected SecurityKeyIdentifierClause(string clauseType) : this(clauseType, null, 0) { } protected SecurityKeyIdentifierClause(string clauseType, byte[] nonce, int length) { this.clauseType = clauseType; this.derivationNonce = nonce; this.derivationLength = length; } public virtual bool CanCreateKey { get { return false; } } public string ClauseType { get { return this.clauseType; } } public virtual SecurityKey CreateKey() { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.KeyIdentifierClauseDoesNotSupportKeyCreation))); } public virtual bool Matches(SecurityKeyIdentifierClause keyIdentifierClause) { return ReferenceEquals(this, keyIdentifierClause); } public byte[] GetDerivationNonce() { return (this.derivationNonce != null) ? (byte[])this.derivationNonce.Clone() : null; } public int DerivationLength { get { return this.derivationLength; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- sqlstateclientmanager.cs
- tabpagecollectioneditor.cs
- PeerResolver.cs
- TextOnlyOutput.cs
- Util.cs
- SQLInt64Storage.cs
- UIElement3D.cs
- OperatingSystem.cs
- ClientFormsAuthenticationCredentials.cs
- BrowserInteropHelper.cs
- TreeViewDesigner.cs
- XmlAnyElementAttribute.cs
- SspiNegotiationTokenProviderState.cs
- MatrixTransform3D.cs
- ImageListUtils.cs
- EmptyStringExpandableObjectConverter.cs
- MonthChangedEventArgs.cs
- AccessViolationException.cs
- DataServiceRequest.cs
- CommonDialog.cs
- DataControlFieldHeaderCell.cs
- WebPartPersonalization.cs
- XmlChildNodes.cs
- PersonalizationProviderHelper.cs
- ScrollItemPatternIdentifiers.cs
- SimpleRecyclingCache.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- SizeAnimationUsingKeyFrames.cs
- Match.cs
- CompoundFileStorageReference.cs
- ArgumentNullException.cs
- CommandEventArgs.cs
- Cloud.cs
- AgileSafeNativeMemoryHandle.cs
- XmlDocumentFragment.cs
- RectangleGeometry.cs
- CancelRequestedRecord.cs
- ItemType.cs
- Comparer.cs
- MarshalDirectiveException.cs
- ISAPIWorkerRequest.cs
- ContentElementAutomationPeer.cs
- ExpressionVisitor.cs
- WindowsProgressbar.cs
- RuleSet.cs
- Globals.cs
- XmlUnspecifiedAttribute.cs
- JumpItem.cs
- EventLogger.cs
- BuilderInfo.cs
- DownloadProgressEventArgs.cs
- PageSetupDialog.cs
- Visual3D.cs
- UIElement.cs
- InputBinder.cs
- InternalsVisibleToAttribute.cs
- XslAst.cs
- DataGridCellItemAutomationPeer.cs
- XamlTypeMapper.cs
- InternalDuplexChannelFactory.cs
- LayoutUtils.cs
- MenuEventArgs.cs
- ThemeDirectoryCompiler.cs
- CalendarSelectionChangedEventArgs.cs
- AdapterDictionary.cs
- TargetFrameworkUtil.cs
- MsmqQueue.cs
- BaseParagraph.cs
- MemberAssignmentAnalysis.cs
- PropertyEmitter.cs
- DesignerActionPropertyItem.cs
- Vector3DAnimationBase.cs
- SerialErrors.cs
- Rect3D.cs
- DataControlFieldCollection.cs
- DecimalAnimationUsingKeyFrames.cs
- XmlStreamStore.cs
- DBNull.cs
- MimeWriter.cs
- SafeCoTaskMem.cs
- AlternationConverter.cs
- MarkupCompiler.cs
- TabPage.cs
- ColumnMapProcessor.cs
- CacheDependency.cs
- ListComponentEditorPage.cs
- RoutedEventHandlerInfo.cs
- ResourceManagerWrapper.cs
- InstrumentationTracker.cs
- StyleHelper.cs
- ControllableStoryboardAction.cs
- InvalidBodyAccessException.cs
- ToggleProviderWrapper.cs
- ScrollChangedEventArgs.cs
- AnnotationComponentManager.cs
- SkinBuilder.cs
- DrawingVisualDrawingContext.cs
- SqlBulkCopyColumnMappingCollection.cs
- AssemblyNameProxy.cs
- ImageListUtils.cs