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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XPathSingletonIterator.cs
- UDPClient.cs
- MatrixTransform.cs
- ProvidersHelper.cs
- GifBitmapEncoder.cs
- _ListenerResponseStream.cs
- SafeLibraryHandle.cs
- ElementsClipboardData.cs
- HttpCookiesSection.cs
- FileAuthorizationModule.cs
- TablePatternIdentifiers.cs
- WmiEventSink.cs
- MemberMaps.cs
- SqlUserDefinedAggregateAttribute.cs
- X509PeerCertificateAuthentication.cs
- CompleteWizardStep.cs
- HeaderUtility.cs
- WorkflowInvoker.cs
- PlainXmlSerializer.cs
- ChineseLunisolarCalendar.cs
- ActivityValidator.cs
- EqualityArray.cs
- TerminateSequenceResponse.cs
- TemplatePagerField.cs
- TraceContext.cs
- CodeAccessPermission.cs
- Rotation3DAnimationBase.cs
- SchemaObjectWriter.cs
- MenuItem.cs
- ResponseBodyWriter.cs
- DesignUtil.cs
- ListenerElementsCollection.cs
- ContactManager.cs
- FlowLayoutPanelDesigner.cs
- ItemsChangedEventArgs.cs
- TransformGroup.cs
- KnownColorTable.cs
- MDIControlStrip.cs
- SqlUtils.cs
- HasCopySemanticsAttribute.cs
- EntitySqlQueryCacheKey.cs
- SymDocumentType.cs
- CallbackValidator.cs
- TableItemStyle.cs
- ImageClickEventArgs.cs
- DesignerCommandAdapter.cs
- WebPart.cs
- SurrogateEncoder.cs
- TransactionProxy.cs
- PropertyValue.cs
- ActiveXMessageFormatter.cs
- DateTimeFormatInfo.cs
- AmbientLight.cs
- DataSourceXmlAttributeAttribute.cs
- SamlConstants.cs
- AbstractDataSvcMapFileLoader.cs
- SqlMethodAttribute.cs
- AesManaged.cs
- Content.cs
- CurrencyWrapper.cs
- SoapIgnoreAttribute.cs
- uribuilder.cs
- SendSecurityHeader.cs
- DEREncoding.cs
- Calendar.cs
- DoubleKeyFrameCollection.cs
- DefaultHttpHandler.cs
- Slider.cs
- TagPrefixCollection.cs
- OptimalBreakSession.cs
- Style.cs
- LambdaCompiler.Statements.cs
- TrackPointCollection.cs
- ExtensionFile.cs
- DataGridDesigner.cs
- HttpCookiesSection.cs
- TakeQueryOptionExpression.cs
- Operators.cs
- UIElement.cs
- ResourceExpression.cs
- DataRecordObjectView.cs
- ItemCollectionEditor.cs
- HttpListenerRequest.cs
- OletxResourceManager.cs
- ZipIORawDataFileBlock.cs
- EmptyArray.cs
- ParameterCollection.cs
- MatcherBuilder.cs
- TemplateKey.cs
- WsatProxy.cs
- DocumentCollection.cs
- ProcessHostMapPath.cs
- SectionInformation.cs
- UIElementParagraph.cs
- WinFormsComponentEditor.cs
- PropertyPathConverter.cs
- Confirm.cs
- Transform.cs
- SharedPerformanceCounter.cs
- BatchServiceHost.cs