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
- PreservationFileWriter.cs
- HtmlElement.cs
- TransactionFilter.cs
- XmlILAnnotation.cs
- TerminatorSinks.cs
- FontSource.cs
- panel.cs
- SQLSingleStorage.cs
- Compilation.cs
- RegexMatchCollection.cs
- _ListenerAsyncResult.cs
- TreeNodeStyle.cs
- Compiler.cs
- InputProcessorProfiles.cs
- DataError.cs
- ChineseLunisolarCalendar.cs
- ObjectDataSourceFilteringEventArgs.cs
- NonBatchDirectoryCompiler.cs
- HyperLinkField.cs
- DBSqlParserColumnCollection.cs
- TextOutput.cs
- DataBoundLiteralControl.cs
- securitymgrsite.cs
- ProxyAttribute.cs
- ImageConverter.cs
- DbConnectionPoolGroupProviderInfo.cs
- WaitHandle.cs
- TextRangeProviderWrapper.cs
- BufferModesCollection.cs
- GuidConverter.cs
- AdjustableArrowCap.cs
- TrustLevelCollection.cs
- PartBasedPackageProperties.cs
- ReadOnlyMetadataCollection.cs
- TypeSystem.cs
- BrushValueSerializer.cs
- ResourcePermissionBaseEntry.cs
- DefaultValueTypeConverter.cs
- VisualTreeUtils.cs
- HeaderPanel.cs
- ColorContextHelper.cs
- PasswordBox.cs
- Error.cs
- RuleSetDialog.Designer.cs
- DbProviderSpecificTypePropertyAttribute.cs
- SHA512CryptoServiceProvider.cs
- DynamicResourceExtension.cs
- FacetChecker.cs
- OleDbSchemaGuid.cs
- MeasurementDCInfo.cs
- ParameterElementCollection.cs
- AssemblyUtil.cs
- ConfigurationStrings.cs
- Animatable.cs
- ExceptionUtil.cs
- DayRenderEvent.cs
- WebPartManager.cs
- LayoutManager.cs
- ImageListDesigner.cs
- XmlILIndex.cs
- XmlUtilWriter.cs
- OdbcEnvironmentHandle.cs
- RadioButton.cs
- TreeBuilder.cs
- PreloadedPackages.cs
- EncoderBestFitFallback.cs
- SurrogateChar.cs
- ObjectViewListener.cs
- ComPlusServiceHost.cs
- DefaultAsyncDataDispatcher.cs
- CodeGotoStatement.cs
- cookie.cs
- DiffuseMaterial.cs
- EmptyImpersonationContext.cs
- Model3D.cs
- SiteMap.cs
- WebControlParameterProxy.cs
- MultiSelectRootGridEntry.cs
- TextTreeNode.cs
- SafeSecurityHelper.cs
- EntityViewGenerationConstants.cs
- HelloOperationAsyncResult.cs
- XmlDomTextWriter.cs
- Stroke2.cs
- ListenerPerfCounters.cs
- RoleBoolean.cs
- ConnectionManagementElementCollection.cs
- NegotiateStream.cs
- FamilyMap.cs
- AssemblyCache.cs
- Int32Rect.cs
- PlainXmlWriter.cs
- WebControlAdapter.cs
- ResetableIterator.cs
- EmptyStringExpandableObjectConverter.cs
- Environment.cs
- UIElement.cs
- DataBoundControlAdapter.cs
- HttpProfileGroupBase.cs
- IndentedTextWriter.cs