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
- AppPool.cs
- Label.cs
- EventDriven.cs
- StoreItemCollection.Loader.cs
- BooleanFunctions.cs
- PkcsMisc.cs
- Command.cs
- ExpressionLexer.cs
- BindingListCollectionView.cs
- Focus.cs
- ListBoxAutomationPeer.cs
- HostAdapter.cs
- TraceProvider.cs
- QilPatternFactory.cs
- CompilerTypeWithParams.cs
- TemplateFactory.cs
- ConvertTextFrag.cs
- AssemblyAttributesGoHere.cs
- ProtectedConfigurationSection.cs
- DefaultBinder.cs
- TraceFilter.cs
- SymbolMethod.cs
- IndentTextWriter.cs
- XPathItem.cs
- MetafileHeader.cs
- WS2007HttpBindingCollectionElement.cs
- AsyncContentLoadedEventArgs.cs
- IsolatedStorage.cs
- EnumBuilder.cs
- DependencyPropertyHelper.cs
- ManipulationStartedEventArgs.cs
- Roles.cs
- WmlCalendarAdapter.cs
- HtmlTernaryTree.cs
- FixedHighlight.cs
- EntitySqlQueryBuilder.cs
- CheckedListBox.cs
- XPathSelfQuery.cs
- ToolStripPanelCell.cs
- ScalarType.cs
- BitConverter.cs
- PersianCalendar.cs
- CodeTypeReferenceExpression.cs
- ObjectSecurity.cs
- XmlDataProvider.cs
- InternalCompensate.cs
- SBCSCodePageEncoding.cs
- ProfilePropertyMetadata.cs
- DataGridItemCollection.cs
- DeviceContext2.cs
- ToolboxComponentsCreatedEventArgs.cs
- GatewayDefinition.cs
- PassportAuthenticationModule.cs
- SafeRegistryHandle.cs
- ProviderConnectionPointCollection.cs
- Visitor.cs
- WebReference.cs
- MatrixCamera.cs
- SR.cs
- ToolBarButtonDesigner.cs
- FilterRepeater.cs
- _FixedSizeReader.cs
- ExtentKey.cs
- SafeBitVector32.cs
- RadioButtonBaseAdapter.cs
- HandlerWithFactory.cs
- RangeExpression.cs
- EventEntry.cs
- DataSourceIDConverter.cs
- FileAuthorizationModule.cs
- DispatcherHooks.cs
- ToolboxComponentsCreatedEventArgs.cs
- AuthenticationModuleElementCollection.cs
- ResourceReferenceKeyNotFoundException.cs
- TreeNodeStyle.cs
- KeyValuePairs.cs
- MasterPageCodeDomTreeGenerator.cs
- EmptyReadOnlyDictionaryInternal.cs
- SecurityResources.cs
- GridViewRowPresenterBase.cs
- EventRouteFactory.cs
- BitmapEffectInputData.cs
- AuthenticationModulesSection.cs
- ConnectionStringSettings.cs
- AnonymousIdentificationModule.cs
- EventMappingSettings.cs
- SiteMap.cs
- EditorPart.cs
- XmlSchemaElement.cs
- ScrollBar.cs
- EventSinkHelperWriter.cs
- EntityDataSourceMemberPath.cs
- NGCPageContentCollectionSerializerAsync.cs
- Geometry3D.cs
- XmlArrayItemAttribute.cs
- DataGridViewColumnHeaderCell.cs
- VerificationException.cs
- TreeSet.cs
- NativeMethods.cs
- FormViewModeEventArgs.cs