Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / IdentityModel / System / IdentityModel / Selectors / UserNameSecurityTokenAuthenticator.cs / 1305376 / UserNameSecurityTokenAuthenticator.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.IdentityModel.Selectors { using System.Collections.ObjectModel; using System.IdentityModel.Policy; using System.IdentityModel.Tokens; public abstract class UserNameSecurityTokenAuthenticator : SecurityTokenAuthenticator { protected UserNameSecurityTokenAuthenticator() { } protected override bool CanValidateTokenCore(SecurityToken token) { return token is UserNameSecurityToken; } protected override ReadOnlyCollectionValidateTokenCore(SecurityToken token) { UserNameSecurityToken userNameToken = (UserNameSecurityToken) token; return ValidateUserNamePasswordCore(userNameToken.UserName, userNameToken.Password); } protected abstract ReadOnlyCollection ValidateUserNamePasswordCore(string userName, string password); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.IdentityModel.Selectors { using System.Collections.ObjectModel; using System.IdentityModel.Policy; using System.IdentityModel.Tokens; public abstract class UserNameSecurityTokenAuthenticator : SecurityTokenAuthenticator { protected UserNameSecurityTokenAuthenticator() { } protected override bool CanValidateTokenCore(SecurityToken token) { return token is UserNameSecurityToken; } protected override ReadOnlyCollection ValidateTokenCore(SecurityToken token) { UserNameSecurityToken userNameToken = (UserNameSecurityToken) token; return ValidateUserNamePasswordCore(userNameToken.UserName, userNameToken.Password); } protected abstract ReadOnlyCollection ValidateUserNamePasswordCore(string userName, string password); } } // 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
- BrowserTree.cs
- CommonBehaviorsSection.cs
- DesignerVerbCollection.cs
- CodeMemberField.cs
- DelegatingStream.cs
- SqlBinder.cs
- Debug.cs
- ObjectDataSourceView.cs
- OverflowException.cs
- NativeMethods.cs
- FixedTextView.cs
- XamlWriter.cs
- FontStyles.cs
- SineEase.cs
- ImageIndexConverter.cs
- IIS7UserPrincipal.cs
- XmlHierarchicalDataSourceView.cs
- WebSysDescriptionAttribute.cs
- ScriptResourceHandler.cs
- Registry.cs
- AttachedProperty.cs
- NativeActivityMetadata.cs
- ObjectListCommandEventArgs.cs
- SystemUdpStatistics.cs
- InternalMappingException.cs
- RoleServiceManager.cs
- IntegerValidatorAttribute.cs
- RegexCode.cs
- WSHttpTransportSecurityElement.cs
- PlatformNotSupportedException.cs
- LogLogRecord.cs
- ThicknessAnimationBase.cs
- SQLSingle.cs
- GroupBox.cs
- SiteMapNodeCollection.cs
- DBNull.cs
- PopupRootAutomationPeer.cs
- XmlIgnoreAttribute.cs
- DispatcherHookEventArgs.cs
- DataContext.cs
- GeneralTransform3D.cs
- GridViewUpdateEventArgs.cs
- RuleSettingsCollection.cs
- FixedDocumentSequencePaginator.cs
- XNodeValidator.cs
- QilGeneratorEnv.cs
- AmbientLight.cs
- Adorner.cs
- ScrollBar.cs
- OleDbTransaction.cs
- SoapProtocolImporter.cs
- SpStreamWrapper.cs
- BevelBitmapEffect.cs
- RadioButtonRenderer.cs
- RegexFCD.cs
- Animatable.cs
- GifBitmapDecoder.cs
- OraclePermissionAttribute.cs
- TextEditorCopyPaste.cs
- RepeaterCommandEventArgs.cs
- UnmanagedMemoryStream.cs
- StringOutput.cs
- TrustManager.cs
- HiddenFieldPageStatePersister.cs
- TextRangeEdit.cs
- AssociationTypeEmitter.cs
- HeaderCollection.cs
- IgnoreSectionHandler.cs
- PathFigureCollectionConverter.cs
- TextSpanModifier.cs
- WebPartHeaderCloseVerb.cs
- Pair.cs
- XmlStringTable.cs
- ViewStateChangedEventArgs.cs
- VideoDrawing.cs
- GradientSpreadMethodValidation.cs
- URLAttribute.cs
- StateBag.cs
- ItemDragEvent.cs
- PackagePart.cs
- TypedDatasetGenerator.cs
- BatchWriter.cs
- ErrorStyle.cs
- safex509handles.cs
- TransactionManager.cs
- UnsafeNativeMethods.cs
- XmlDictionaryReaderQuotasElement.cs
- MachineKeyConverter.cs
- ElementNotAvailableException.cs
- SqlGatherConsumedAliases.cs
- HostingEnvironmentSection.cs
- invalidudtexception.cs
- CodeExporter.cs
- FastEncoder.cs
- StrokeCollection2.cs
- FontUnitConverter.cs
- ProcessModelSection.cs
- MonthChangedEventArgs.cs
- TouchesCapturedWithinProperty.cs
- DataGridViewCellPaintingEventArgs.cs