Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Security / Tokens / DerivedKeySecurityTokenStub.cs / 1 / DerivedKeySecurityTokenStub.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Security.Tokens { using System.Collections.ObjectModel; using System.ServiceModel; using System.IdentityModel.Claims; using System.IdentityModel.Policy; using System.IdentityModel.Tokens; sealed class DerivedKeySecurityTokenStub : SecurityToken { string id; string derivationAlgorithm; string label; int length; byte[] nonce; int offset; int generation; SecurityKeyIdentifierClause tokenToDeriveIdentifier; public DerivedKeySecurityTokenStub(int generation, int offset, int length, string label, byte[] nonce, SecurityKeyIdentifierClause tokenToDeriveIdentifier, string derivationAlgorithm, string id) { this.id = id; this.generation = generation; this.offset = offset; this.length = length; this.label = label; this.nonce = nonce; this.tokenToDeriveIdentifier = tokenToDeriveIdentifier; this.derivationAlgorithm = derivationAlgorithm; } public override string Id { get { return this.id; } } public override DateTime ValidFrom { #pragma warning suppress 56503 // Property does not make sense for Derived Key tokens. get { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException()); } } public override DateTime ValidTo { #pragma warning suppress 56503 // Property does not make sense for Derived Key tokens. get { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException()); } } public override ReadOnlyCollectionSecurityKeys { get { return null; } } public SecurityKeyIdentifierClause TokenToDeriveIdentifier { get { return this.tokenToDeriveIdentifier; } } public DerivedKeySecurityToken CreateToken(SecurityToken tokenToDerive, int maxKeyLength) { DerivedKeySecurityToken result = new DerivedKeySecurityToken(this.generation, this.offset, this.length, this.label, this.nonce, tokenToDerive, this.tokenToDeriveIdentifier, this.derivationAlgorithm, this.Id); result.InitializeDerivedKey(maxKeyLength); return result; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PerformanceCounterManager.cs
- Parameter.cs
- TableLayoutColumnStyleCollection.cs
- FixedTextSelectionProcessor.cs
- PropertyInfo.cs
- SrgsElementFactory.cs
- HyperLinkStyle.cs
- ProviderCollection.cs
- StorageModelBuildProvider.cs
- TagMapInfo.cs
- EntityObject.cs
- CodeMethodReturnStatement.cs
- RequestCacheManager.cs
- CqlWriter.cs
- BulletChrome.cs
- Double.cs
- CompositeDataBoundControl.cs
- ReadOnlyActivityGlyph.cs
- XPathChildIterator.cs
- SqlConnectionString.cs
- Column.cs
- ScriptServiceAttribute.cs
- LayoutManager.cs
- CssTextWriter.cs
- CompiledQuery.cs
- VirtualPathProvider.cs
- DataSetMappper.cs
- HttpException.cs
- FontUnit.cs
- IdentityManager.cs
- GacUtil.cs
- TextServicesPropertyRanges.cs
- ServiceMemoryGates.cs
- ObjectAnimationBase.cs
- SqlProfileProvider.cs
- ConnectorMovedEventArgs.cs
- XamlLoadErrorInfo.cs
- cookiecontainer.cs
- ParagraphVisual.cs
- XmlNodeList.cs
- ControlParser.cs
- DnsPermission.cs
- IsolatedStorageException.cs
- WindowsSpinner.cs
- ResolveNameEventArgs.cs
- TagNameToTypeMapper.cs
- ToolStripContentPanelRenderEventArgs.cs
- WebPartEventArgs.cs
- State.cs
- TableColumn.cs
- PickDesigner.xaml.cs
- TransportSecurityHelpers.cs
- EntityDataReader.cs
- SubclassTypeValidatorAttribute.cs
- ArrayTypeMismatchException.cs
- _ScatterGatherBuffers.cs
- Emitter.cs
- CustomErrorCollection.cs
- UTF32Encoding.cs
- InputGestureCollection.cs
- Material.cs
- XmlSchemaImport.cs
- NamedElement.cs
- FontUnit.cs
- Control.cs
- ButtonStandardAdapter.cs
- MethodBuilder.cs
- ConfigurationLocation.cs
- WinFormsUtils.cs
- MultiByteCodec.cs
- Vector.cs
- DateTimeUtil.cs
- DelayDesigner.cs
- ServicePointManager.cs
- XmlStreamStore.cs
- ZoneLinkButton.cs
- RowType.cs
- ProfileSection.cs
- TcpAppDomainProtocolHandler.cs
- RawKeyboardInputReport.cs
- DrawingContextWalker.cs
- SignedPkcs7.cs
- _IPv4Address.cs
- LinqToSqlWrapper.cs
- SystemPens.cs
- FileLoadException.cs
- WeakReferenceList.cs
- DataMisalignedException.cs
- x509store.cs
- ImplicitInputBrush.cs
- DataReceivedEventArgs.cs
- GifBitmapDecoder.cs
- GcSettings.cs
- EntityDataSourceColumn.cs
- DBDataPermissionAttribute.cs
- PathBox.cs
- X509CertificateStore.cs
- SymmetricAlgorithm.cs
- MailFileEditor.cs
- NativeMethodsCLR.cs