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
- ListViewAutomationPeer.cs
- Root.cs
- EventProvider.cs
- HtmlControlPersistable.cs
- EpmCustomContentDeSerializer.cs
- WebPartEditVerb.cs
- ManageRequest.cs
- PingReply.cs
- Compiler.cs
- ValidatorCollection.cs
- RewritingProcessor.cs
- ConcurrentDictionary.cs
- SafeCoTaskMem.cs
- LiteralControl.cs
- LinkConverter.cs
- DataSourceXmlSerializationAttribute.cs
- NativeMethods.cs
- ReceiveActivity.cs
- XPathNodeHelper.cs
- SoapFormatter.cs
- Italic.cs
- TreeNodeEventArgs.cs
- Exception.cs
- MailMessage.cs
- SafeFileMapViewHandle.cs
- SourceChangedEventArgs.cs
- WinFormsSecurity.cs
- HtmlInputCheckBox.cs
- InstanceDescriptor.cs
- Accessible.cs
- FilteredReadOnlyMetadataCollection.cs
- _NegotiateClient.cs
- sqlpipe.cs
- ParseChildrenAsPropertiesAttribute.cs
- TreeNodeClickEventArgs.cs
- OptimizedTemplateContent.cs
- RegisteredHiddenField.cs
- InvalidDataException.cs
- GridViewUpdateEventArgs.cs
- ClientBuildManagerCallback.cs
- ObjectListSelectEventArgs.cs
- ComEventsHelper.cs
- FontFaceLayoutInfo.cs
- DataGridrowEditEndingEventArgs.cs
- Image.cs
- BindToObject.cs
- MemoryPressure.cs
- ObjectCloneHelper.cs
- OperationFormatStyle.cs
- MemberRelationshipService.cs
- SamlSubject.cs
- ClonableStack.cs
- ContentOperations.cs
- TableLayoutSettings.cs
- AutomationEventArgs.cs
- IndexerReference.cs
- diagnosticsswitches.cs
- HttpHandlerActionCollection.cs
- SubMenuStyle.cs
- GridEntry.cs
- SchemaInfo.cs
- WinEventQueueItem.cs
- FixedFlowMap.cs
- FontUnitConverter.cs
- TablePattern.cs
- DocumentGrid.cs
- ToolStripEditorManager.cs
- xmlsaver.cs
- ContextToken.cs
- StateFinalizationDesigner.cs
- BoundingRectTracker.cs
- XmlSchemaSimpleTypeList.cs
- SafeBitVector32.cs
- cryptoapiTransform.cs
- DataColumnPropertyDescriptor.cs
- IconConverter.cs
- ResolvedKeyFrameEntry.cs
- IsolatedStorageFilePermission.cs
- DocumentXmlWriter.cs
- ServicesUtilities.cs
- PeerChannelListener.cs
- CollectionChangedEventManager.cs
- SmtpFailedRecipientException.cs
- XLinq.cs
- SiteMapDataSourceView.cs
- OdbcTransaction.cs
- Base64Decoder.cs
- ListDataHelper.cs
- SecurityToken.cs
- FixedSOMSemanticBox.cs
- CategoryAttribute.cs
- LeftCellWrapper.cs
- ReadOnlyDictionary.cs
- FontDriver.cs
- ValidationUtility.cs
- XPathDocument.cs
- ActivityInterfaces.cs
- FileSystemEventArgs.cs
- SessionStateSection.cs
- CollectionChangedEventManager.cs