Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / IdentityModel / System / IdentityModel / Selectors / UserNameSecurityTokenProvider.cs / 1305376 / UserNameSecurityTokenProvider.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.IdentityModel.Selectors { using System.IdentityModel.Tokens; public class UserNameSecurityTokenProvider : SecurityTokenProvider { UserNameSecurityToken userNameToken; public UserNameSecurityTokenProvider(string userName, string password) { if (userName == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("userName"); } this.userNameToken = new UserNameSecurityToken(userName, password); } protected override SecurityToken GetTokenCore(TimeSpan timeout) { return this.userNameToken; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.IdentityModel.Selectors { using System.IdentityModel.Tokens; public class UserNameSecurityTokenProvider : SecurityTokenProvider { UserNameSecurityToken userNameToken; public UserNameSecurityTokenProvider(string userName, string password) { if (userName == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("userName"); } this.userNameToken = new UserNameSecurityToken(userName, password); } protected override SecurityToken GetTokenCore(TimeSpan timeout) { return this.userNameToken; } } } // 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
- __Filters.cs
- ColumnMapCopier.cs
- BindStream.cs
- TypePropertyEditor.cs
- SkipQueryOptionExpression.cs
- ApplicationHost.cs
- DataControlLinkButton.cs
- SeparatorAutomationPeer.cs
- RoleServiceManager.cs
- Message.cs
- ButtonBaseDesigner.cs
- PropertyInfoSet.cs
- PathFigureCollectionConverter.cs
- WebSysDescriptionAttribute.cs
- FixedFlowMap.cs
- Oci.cs
- TransformerInfo.cs
- OleDbRowUpdatedEvent.cs
- ReversePositionQuery.cs
- ExclusiveTcpListener.cs
- FilteredXmlReader.cs
- ReferenceEqualityComparer.cs
- WindowShowOrOpenTracker.cs
- TextEditorLists.cs
- BuildManager.cs
- TryCatchDesigner.xaml.cs
- DataSourceCache.cs
- ListViewCommandEventArgs.cs
- IndexedGlyphRun.cs
- Utility.cs
- NativeCompoundFileAPIs.cs
- ApplicationHost.cs
- Quad.cs
- LinkArea.cs
- SqlBulkCopyColumnMappingCollection.cs
- MenuAdapter.cs
- SafeRightsManagementHandle.cs
- AncestorChangedEventArgs.cs
- CallSiteOps.cs
- SchemaMerger.cs
- LinkDesigner.cs
- SafeArrayRankMismatchException.cs
- OdbcDataReader.cs
- ToolStripDesignerUtils.cs
- EvidenceBase.cs
- BaseInfoTable.cs
- DesignerRegion.cs
- WebPartHelpVerb.cs
- StrokeRenderer.cs
- CultureData.cs
- _WinHttpWebProxyDataBuilder.cs
- EdmFunctions.cs
- ExtractCollection.cs
- AuthenticationServiceManager.cs
- ProviderCollection.cs
- PixelFormats.cs
- AssemblyCollection.cs
- Suspend.cs
- QilFunction.cs
- SkipQueryOptionExpression.cs
- LayoutManager.cs
- EntityContainerEmitter.cs
- WindowsMenu.cs
- HttpListenerResponse.cs
- XmlStreamStore.cs
- IndependentAnimationStorage.cs
- LineVisual.cs
- Guid.cs
- WindowsFormsLinkLabel.cs
- XmlResolver.cs
- COM2ExtendedTypeConverter.cs
- XMLDiffLoader.cs
- Size.cs
- GlyphRun.cs
- SqlUserDefinedAggregateAttribute.cs
- XmlSchemaAppInfo.cs
- FragmentQueryProcessor.cs
- ExceptQueryOperator.cs
- RequestQueue.cs
- StringFormat.cs
- ListViewItem.cs
- StorageScalarPropertyMapping.cs
- XmlWrappingReader.cs
- DataGridColumn.cs
- basevalidator.cs
- TextTreeTextBlock.cs
- KoreanLunisolarCalendar.cs
- ObjectSpanRewriter.cs
- NetMsmqSecurityElement.cs
- WebServiceBindingAttribute.cs
- MappingItemCollection.cs
- GlobalProxySelection.cs
- _LazyAsyncResult.cs
- SpellerHighlightLayer.cs
- ApplicationBuildProvider.cs
- SqlBuffer.cs
- TriggerActionCollection.cs
- fixedPageContentExtractor.cs
- PartitionerStatic.cs
- CompilerErrorCollection.cs