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
- Permission.cs
- MsdtcWrapper.cs
- ProfessionalColors.cs
- FacetChecker.cs
- ReaderContextStackData.cs
- ButtonBase.cs
- DependsOnAttribute.cs
- SqlDataSourceCustomCommandEditor.cs
- X509Certificate2.cs
- Visitor.cs
- PackageRelationshipCollection.cs
- BuildResultCache.cs
- StyleSheet.cs
- DesignerObjectListAdapter.cs
- XPathAncestorQuery.cs
- IsolatedStorageFile.cs
- MarkupCompiler.cs
- Perspective.cs
- KeyValuePairs.cs
- ObjectListShowCommandsEventArgs.cs
- WindowsFormsHostPropertyMap.cs
- HuffModule.cs
- XmlSchemaException.cs
- XmlElementList.cs
- PointKeyFrameCollection.cs
- SqlDataSourceCache.cs
- UrlMappingCollection.cs
- Page.cs
- FlowDocumentFormatter.cs
- ImageKeyConverter.cs
- DataRecordObjectView.cs
- CodeCommentStatement.cs
- FixedFindEngine.cs
- MostlySingletonList.cs
- NetPipeSectionData.cs
- SelectionEditor.cs
- Main.cs
- RenderDataDrawingContext.cs
- ConfigXmlAttribute.cs
- RegexMatchCollection.cs
- PublisherMembershipCondition.cs
- DataGridViewCellValidatingEventArgs.cs
- EntityContainer.cs
- AttributeQuery.cs
- HtmlUtf8RawTextWriter.cs
- LinkDescriptor.cs
- StrongNameMembershipCondition.cs
- AsymmetricKeyExchangeDeformatter.cs
- ElementsClipboardData.cs
- Vector3D.cs
- ValidatorAttribute.cs
- SafeNativeMethods.cs
- PropertyToken.cs
- ImageCodecInfo.cs
- SourceFilter.cs
- WindowsTreeView.cs
- Flattener.cs
- ConfigurationLocation.cs
- DataTablePropertyDescriptor.cs
- SrgsGrammarCompiler.cs
- EndPoint.cs
- XmlWellformedWriter.cs
- Token.cs
- MultipartContentParser.cs
- OutputCacheSettingsSection.cs
- PlaceHolder.cs
- keycontainerpermission.cs
- UserPreferenceChangedEventArgs.cs
- DefaultSection.cs
- ButtonBase.cs
- XmlSchema.cs
- HttpInputStream.cs
- UpWmlMobileTextWriter.cs
- LambdaCompiler.Unary.cs
- SectionRecord.cs
- SmtpReplyReader.cs
- BaseHashHelper.cs
- UserPersonalizationStateInfo.cs
- DataContractJsonSerializerOperationBehavior.cs
- DebugView.cs
- SmtpNegotiateAuthenticationModule.cs
- DescendantBaseQuery.cs
- ProvideValueServiceProvider.cs
- SignedInfo.cs
- WindowsSpinner.cs
- PointIndependentAnimationStorage.cs
- PeerEndPoint.cs
- GroupBox.cs
- PartManifestEntry.cs
- PropertyEmitterBase.cs
- KoreanCalendar.cs
- ToolStripGrip.cs
- Set.cs
- AssociationSetMetadata.cs
- XmlSchemaProviderAttribute.cs
- ComboBoxRenderer.cs
- EditingScope.cs
- UnsafeNativeMethods.cs
- TextProperties.cs
- DrawingCollection.cs