Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Service / managed / Microsoft / InfoCards / PolicyUtility.cs / 1 / PolicyUtility.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- // // Presharp uses the c# pragma mechanism to supress its warnings. // These are not recognised by the base compiler so we need to explictly // disable the following warnings. See http://winweb/cse/Tools/PREsharp/userguide/default.asp // for details. // #pragma warning disable 1634, 1691 // unknown message, unknown pragma namespace Microsoft.InfoCards { using System; // // Summary: // Contains utility methods for dealing with policy that may be needed in multiple classes. // internal class PolicyUtility { static public bool IsSelfIssuedTokenType( string tokenType ) { if( XmlNames.Saml11.Namespace == tokenType || XmlNames.Saml10.Namespace == tokenType || XmlNames.Saml11.AltNamespace == tokenType ) { return true; } return false; } static public bool IsSelfIssuedClaim( string claimType ) { foreach( string selfUri in InfoCardConstants.SelfIssuedClaimsUris ) { if( selfUri == claimType ) { return true; } } if( InfoCardConstants.PPIDClaimsUri == claimType ) { return true; } return false; } } } // 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
- SQLSingleStorage.cs
- EntityStoreSchemaGenerator.cs
- ContractType.cs
- TokenBasedSetEnumerator.cs
- BookmarkInfo.cs
- DataSourceHelper.cs
- HtmlInputSubmit.cs
- IncrementalHitTester.cs
- COM2IProvidePropertyBuilderHandler.cs
- FileCodeGroup.cs
- CompositeDesignerAccessibleObject.cs
- TemplatedMailWebEventProvider.cs
- GridViewColumnCollection.cs
- WebBrowserSiteBase.cs
- TransactionManager.cs
- MimeMapping.cs
- SqlInternalConnectionTds.cs
- ProgressPage.cs
- EntityViewContainer.cs
- SrgsElementFactoryCompiler.cs
- MemberDescriptor.cs
- SqlVersion.cs
- HuffmanTree.cs
- SQLMoneyStorage.cs
- ExceptQueryOperator.cs
- FormViewCommandEventArgs.cs
- StylusPointDescription.cs
- XPathMultyIterator.cs
- LinkDesigner.cs
- DropShadowEffect.cs
- GlobalEventManager.cs
- AxHostDesigner.cs
- BitFlagsGenerator.cs
- GeometryGroup.cs
- ContainsRowNumberChecker.cs
- DbConnectionHelper.cs
- NodeLabelEditEvent.cs
- Trace.cs
- ProtocolReflector.cs
- PrintPageEvent.cs
- SqlConnectionFactory.cs
- WinFormsSecurity.cs
- FileAuthorizationModule.cs
- ScriptingScriptResourceHandlerSection.cs
- securestring.cs
- WebPartAddingEventArgs.cs
- DelimitedListTraceListener.cs
- DetailsView.cs
- NameNode.cs
- TypeSystem.cs
- DataGridTextBoxColumn.cs
- CompositeFontParser.cs
- SHA256Managed.cs
- SqlRowUpdatingEvent.cs
- EndEvent.cs
- XmlIgnoreAttribute.cs
- Polyline.cs
- MiniConstructorInfo.cs
- FieldNameLookup.cs
- AnnouncementEventArgs.cs
- XPathSelfQuery.cs
- HostedImpersonationContext.cs
- MeshGeometry3D.cs
- ToolStripDropDownMenu.cs
- RunWorkerCompletedEventArgs.cs
- HttpHandlersSection.cs
- SimpleMailWebEventProvider.cs
- WinInetCache.cs
- CodeStatement.cs
- Normalization.cs
- ExpandCollapsePattern.cs
- MutexSecurity.cs
- CDSsyncETWBCLProvider.cs
- WorkflowWebHostingModule.cs
- DataGridViewLinkCell.cs
- RootBuilder.cs
- ExtendedProperty.cs
- ISAPIRuntime.cs
- BindingGroup.cs
- EntityDataSourceViewSchema.cs
- PasswordRecoveryAutoFormat.cs
- ImportContext.cs
- RelatedView.cs
- MetadataUtilsSmi.cs
- RenameRuleObjectDialog.Designer.cs
- ScrollProperties.cs
- EllipseGeometry.cs
- GlobalDataBindingHandler.cs
- Section.cs
- HTTPRemotingHandler.cs
- ClientFormsAuthenticationCredentials.cs
- ColumnPropertiesGroup.cs
- RegexParser.cs
- TimeIntervalCollection.cs
- BodyGlyph.cs
- ImageInfo.cs
- ConfigXmlWhitespace.cs
- ConnectionOrientedTransportManager.cs
- BinaryFormatter.cs
- ThreadExceptionEvent.cs