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
- DataTableClearEvent.cs
- LassoHelper.cs
- ContentPresenter.cs
- ContentHostHelper.cs
- XmlReaderSettings.cs
- SliderAutomationPeer.cs
- _NTAuthentication.cs
- UnsafeNativeMethods.cs
- DetailsViewInsertEventArgs.cs
- OrderedDictionaryStateHelper.cs
- OleDbTransaction.cs
- CookieProtection.cs
- HttpTransportSecurityElement.cs
- SqlDataSourceCache.cs
- PasswordPropertyTextAttribute.cs
- IsolatedStorageFilePermission.cs
- SspiHelper.cs
- KeyEventArgs.cs
- TextDecorations.cs
- PerfService.cs
- StylusPlugin.cs
- VerticalAlignConverter.cs
- PrefixQName.cs
- DLinqDataModelProvider.cs
- IPCCacheManager.cs
- Parameter.cs
- CalendarDay.cs
- GPPOINTF.cs
- SqlProcedureAttribute.cs
- Rule.cs
- ObjectDataSourceFilteringEventArgs.cs
- HttpPostedFile.cs
- WSUtilitySpecificationVersion.cs
- RegexCaptureCollection.cs
- VisualStyleRenderer.cs
- X509CertificateTrustedIssuerElementCollection.cs
- ManagementClass.cs
- ElementNotAvailableException.cs
- ReachSerializationUtils.cs
- GridItem.cs
- ObservableDictionary.cs
- StringStorage.cs
- AdornerHitTestResult.cs
- ButtonStandardAdapter.cs
- SqlInternalConnectionSmi.cs
- CodeValidator.cs
- CalendarDayButton.cs
- NativeWindow.cs
- JpegBitmapDecoder.cs
- XmlSchemaSubstitutionGroup.cs
- AsymmetricSignatureDeformatter.cs
- OleDbConnectionFactory.cs
- XomlCompilerError.cs
- SystemKeyConverter.cs
- ApplicationDirectory.cs
- SqlReferenceCollection.cs
- InfoCardTrace.cs
- XmlDictionaryString.cs
- CombinedGeometry.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- CommandConverter.cs
- RemoteHelper.cs
- CharacterString.cs
- Pointer.cs
- Int32Collection.cs
- CodeSnippetCompileUnit.cs
- GridEntryCollection.cs
- WebMethodAttribute.cs
- CodeTryCatchFinallyStatement.cs
- CacheRequest.cs
- DbTransaction.cs
- IfAction.cs
- ListenerSessionConnection.cs
- IFormattable.cs
- BinaryConverter.cs
- CodeEntryPointMethod.cs
- WebPartCollection.cs
- DependencyPropertyKey.cs
- AmbientEnvironment.cs
- EdmComplexPropertyAttribute.cs
- TimeSpanMinutesConverter.cs
- BlockUIContainer.cs
- OleDbMetaDataFactory.cs
- DataGridViewCellValidatingEventArgs.cs
- ButtonColumn.cs
- CodeAccessPermission.cs
- TimeSpan.cs
- DrawingCollection.cs
- OleDbRowUpdatedEvent.cs
- SqlBooleanMismatchVisitor.cs
- ColorDialog.cs
- LinearQuaternionKeyFrame.cs
- DataSourceControl.cs
- SchemaManager.cs
- WebEventTraceProvider.cs
- XmlIlTypeHelper.cs
- Select.cs
- QilIterator.cs
- RoleService.cs
- SapiInterop.cs